Show / Hide Table of Contents

    Class ThrottledIndexOutput

    Intentionally slow for testing.

    Inheritance
    System.Object
    ThrottledIndexOutput
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public class ThrottledIndexOutput : IndexOutput

    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
    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
    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
    IndexOutput delegate

    Fields

    | Improve this Doc View Source

    DEFAULT_MIN_WRITTEN_BYTES

    Declaration
    public const int DEFAULT_MIN_WRITTEN_BYTES = null
    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
    | Improve this Doc View Source

    Length

    Declaration
    public override long Length { get; set; }
    Property Value
    Type Description
    System.Int64

    Methods

    | Improve this Doc View Source

    CopyBytes(DataInput, Int64)

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

    Dispose(Boolean)

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

    Flush()

    Declaration
    public override void 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

    GetFilePointer()

    Declaration
    public override long GetFilePointer()
    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
    IndexOutput output
    Returns
    Type Description
    ThrottledIndexOutput
    | Improve this Doc View Source

    Seek(Int64)

    Declaration
    public override void Seek(long pos)
    Parameters
    Type Name Description
    System.Int64 pos
    | Improve this Doc View Source

    WriteByte(Byte)

    Declaration
    public override void WriteByte(byte b)
    Parameters
    Type Name Description
    System.Byte b
    | 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
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)