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 SourceByteSequencesReader(FileInfo)
Constructs a OfflineSorter.ByteSequencesReader from the provided
Declaration
public ByteSequencesReader(FileInfo file)
Parameters
Type | Name | Description |
---|---|---|
FileInfo | file |
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 SourceDispose()
Disposes the provided DataInput if it is
Declaration
public void Dispose()
Read()
Reads the next entry and returns it if successful.
Declaration
public virtual byte[] Read()
Returns
Type | Description |
---|---|
System.Byte[] | Returns |
See Also
| Improve this Doc View SourceRead(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 |