Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class ThrottledIndexOutput

    Intentionally slow Lucene.Net.Store.IndexOutput for testing.

    Inheritance
    System.Object
    Lucene.Net.Store.DataOutput
    Lucene.Net.Store.IndexOutput
    ThrottledIndexOutput
    Implements
    System.IDisposable
    Inherited Members
    Lucene.Net.Store.IndexOutput.Dispose()
    Lucene.Net.Store.DataOutput.WriteBytes(System.Byte[], System.Int32)
    Lucene.Net.Store.DataOutput.WriteInt32(System.Int32)
    Lucene.Net.Store.DataOutput.WriteInt16(System.Int16)
    Lucene.Net.Store.DataOutput.WriteVInt32(System.Int32)
    Lucene.Net.Store.DataOutput.WriteInt64(System.Int64)
    Lucene.Net.Store.DataOutput.WriteVInt64(System.Int64)
    Lucene.Net.Store.DataOutput.WriteString(System.String)
    Lucene.Net.Store.DataOutput.WriteStringStringMap(System.Collections.Generic.IDictionary<System.String, System.String>)
    Lucene.Net.Store.DataOutput.WriteStringSet(System.Collections.Generic.ISet<System.String>)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public class ThrottledIndexOutput : IndexOutput, IDisposable

    Constructors

    | Improve this Doc View Source

    ThrottledIndexOutput(Int32, Int64, IndexOutput)

    Declaration
    public ThrottledIndexOutput(int bytesPerSecond, long delayInMillis, IndexOutput delegate)
    Parameters
    Type Name Description
    System.Int32 bytesPerSecond
    System.Int64 delayInMillis
    Lucene.Net.Store.IndexOutput delegate
    | Improve this Doc View Source

    ThrottledIndexOutput(Int32, Int64, Int32, IndexOutput)

    Declaration
    public ThrottledIndexOutput(int bytesPerSecond, long delays, int minBytesWritten, IndexOutput delegate)
    Parameters
    Type Name Description
    System.Int32 bytesPerSecond
    System.Int64 delays
    System.Int32 minBytesWritten
    Lucene.Net.Store.IndexOutput delegate
    | Improve this Doc View Source

    ThrottledIndexOutput(Int32, Int64, Int64, Int64, Int64, IndexOutput)

    Declaration
    public ThrottledIndexOutput(int bytesPerSecond, long flushDelayMillis, long closeDelayMillis, long seekDelayMillis, long minBytesWritten, IndexOutput delegate)
    Parameters
    Type Name Description
    System.Int32 bytesPerSecond
    System.Int64 flushDelayMillis
    System.Int64 closeDelayMillis
    System.Int64 seekDelayMillis
    System.Int64 minBytesWritten
    Lucene.Net.Store.IndexOutput delegate

    Fields

    | Improve this Doc View Source

    DEFAULT_MIN_WRITTEN_BYTES

    Declaration
    public const int DEFAULT_MIN_WRITTEN_BYTES = 1024
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    Checksum

    Declaration
    public override long Checksum { get; }
    Property Value
    Type Description
    System.Int64
    Overrides
    Lucene.Net.Store.IndexOutput.Checksum
    | Improve this Doc View Source

    Length

    Declaration
    public override long Length { get; set; }
    Property Value
    Type Description
    System.Int64
    Overrides
    Lucene.Net.Store.IndexOutput.Length
    | Improve this Doc View Source

    Position

    Declaration
    public override long Position { get; }
    Property Value
    Type Description
    System.Int64
    Overrides
    Lucene.Net.Store.IndexOutput.Position

    Methods

    | Improve this Doc View Source

    CopyBytes(DataInput, Int64)

    Declaration
    public override void CopyBytes(DataInput input, long numBytes)
    Parameters
    Type Name Description
    Lucene.Net.Store.DataInput input
    System.Int64 numBytes
    Overrides
    Lucene.Net.Store.DataOutput.CopyBytes(Lucene.Net.Store.DataInput, System.Int64)
    | Improve this Doc View Source

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    Lucene.Net.Store.IndexOutput.Dispose(System.Boolean)
    | Improve this Doc View Source

    Flush()

    Declaration
    public override void Flush()
    Overrides
    Lucene.Net.Store.IndexOutput.Flush()
    | Improve this Doc View Source

    GetDelay(Boolean)

    Declaration
    protected virtual long GetDelay(bool closing)
    Parameters
    Type Name Description
    System.Boolean closing
    Returns
    Type Description
    System.Int64
    | Improve this Doc View Source

    MBitsToBytes(Int32)

    Declaration
    public static int MBitsToBytes(int mbits)
    Parameters
    Type Name Description
    System.Int32 mbits
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NewFromDelegate(IndexOutput)

    Declaration
    public virtual ThrottledIndexOutput NewFromDelegate(IndexOutput output)
    Parameters
    Type Name Description
    Lucene.Net.Store.IndexOutput output
    Returns
    Type Description
    ThrottledIndexOutput
    | Improve this Doc View Source

    Seek(Int64)

    Declaration
    [Obsolete("(4.1) this method will be removed in Lucene 5.0")]
    public override void Seek(long pos)
    Parameters
    Type Name Description
    System.Int64 pos
    Overrides
    Lucene.Net.Store.IndexOutput.Seek(System.Int64)
    | Improve this Doc View Source

    WriteByte(Byte)

    Declaration
    public override void WriteByte(byte b)
    Parameters
    Type Name Description
    System.Byte b
    Overrides
    Lucene.Net.Store.DataOutput.WriteByte(System.Byte)
    | Improve this Doc View Source

    WriteBytes(Byte[], Int32, Int32)

    Declaration
    public override void WriteBytes(byte[] b, int offset, int length)
    Parameters
    Type Name Description
    System.Byte[] b
    System.Int32 offset
    System.Int32 length
    Overrides
    Lucene.Net.Store.DataOutput.WriteBytes(System.Byte[], System.Int32, System.Int32)

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.