Show / Hide Table of Contents

    Class BufferedIndexOutput

    Base implementation class for buffered IndexOutput.

    Inheritance
    System.Object
    DataOutput
    IndexOutput
    BufferedIndexOutput
    FSDirectory.FSIndexOutput
    Implements
    IDisposable
    Inherited Members
    IndexOutput.Dispose()
    DataOutput.WriteBytes(Byte[], Int32)
    DataOutput.WriteInt32(Int32)
    DataOutput.WriteInt16(Int16)
    DataOutput.WriteVInt32(Int32)
    DataOutput.WriteInt64(Int64)
    DataOutput.WriteVInt64(Int64)
    DataOutput.WriteString(String)
    DataOutput.CopyBytes(DataInput, Int64)
    DataOutput.WriteStringStringMap(IDictionary<String, String>)
    DataOutput.WriteStringSet(ISet<String>)
    Namespace: Lucene.Net.Store
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class BufferedIndexOutput : IndexOutput, IDisposable

    Constructors

    | Improve this Doc View Source

    BufferedIndexOutput()

    Creates a new BufferedIndexOutput with the default buffer size (DEFAULT_BUFFER_SIZE bytes see DEFAULT_BUFFER_SIZE)

    Declaration
    public BufferedIndexOutput()
    | Improve this Doc View Source

    BufferedIndexOutput(Int32)

    Creates a new BufferedIndexOutput with the given buffer size.

    Declaration
    public BufferedIndexOutput(int bufferSize)
    Parameters
    Type Name Description
    System.Int32 bufferSize

    the buffer size in bytes used to buffer writes internally.

    Fields

    | Improve this Doc View Source

    DEFAULT_BUFFER_SIZE

    The default buffer size in bytes (DEFAULT_BUFFER_SIZE).

    Declaration
    public const int DEFAULT_BUFFER_SIZE = null
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    BufferSize

    Returns size of the used output buffer in bytes.

    Declaration
    public int BufferSize { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Checksum

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

    Length

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

    Methods

    | Improve this Doc View Source

    Dispose(Boolean)

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

    Flush()

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

    FlushBuffer(Byte[], Int32, Int32)

    Expert: implements buffer write. Writes bytes at the current position in the output.

    Declaration
    protected abstract void FlushBuffer(byte[] b, int offset, int len)
    Parameters
    Type Name Description
    System.Byte[] b

    the bytes to write

    System.Int32 offset

    the offset in the byte array

    System.Int32 len

    the number of bytes to write

    | Improve this Doc View Source

    GetFilePointer()

    Declaration
    public override long GetFilePointer()
    Returns
    Type Description
    System.Int64
    Overrides
    IndexOutput.GetFilePointer()
    | Improve this Doc View Source

    Seek(Int64)

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

    WriteByte(Byte)

    Declaration
    public override void WriteByte(byte b)
    Parameters
    Type Name Description
    System.Byte b
    Overrides
    DataOutput.WriteByte(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
    DataOutput.WriteBytes(Byte[], Int32, Int32)

    Implements

    IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)