Show / Hide Table of Contents

    Class OfflineSorter.ByteSequencesReader

    Utility class to read length-prefixed byte[] entries from an input. Complementary to OfflineSorter.ByteSequencesWriter.

    Inheritance
    System.Object
    OfflineSorter.ByteSequencesReader
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public class ByteSequencesReader : IDisposable

    Constructors

    | Improve this Doc View Source

    ByteSequencesReader(FileInfo)

    Constructs a OfflineSorter.ByteSequencesReader from the provided .

    Declaration
    public ByteSequencesReader(FileInfo file)
    Parameters
    Type Name Description
    FileInfo file
    | Improve this Doc View Source

    ByteSequencesReader(DataInput)

    Constructs a OfflineSorter.ByteSequencesReader from the provided DataInput.

    Declaration
    public ByteSequencesReader(DataInput inputStream)
    Parameters
    Type Name Description
    DataInput inputStream

    Methods

    | Improve this Doc View Source

    Dispose()

    Disposes the provided DataInput if it is .

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Read()

    Reads the next entry and returns it if successful.

    Declaration
    public virtual byte[] Read()
    Returns
    Type Description
    System.Byte[]

    Returns null if EOF occurred before the next entry could be read.

    See Also
    Read(BytesRef)
    | Improve this Doc View Source

    Read(BytesRef)

    Reads the next entry into the provided BytesRef. The internal storage is resized if needed.

    Declaration
    public virtual bool Read(BytesRef ref)
    Parameters
    Type Name Description
    BytesRef ref
    Returns
    Type Description
    System.Boolean

    Returns false if EOF occurred when trying to read the header of the next sequence. Returns true otherwise.

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