Class OfflineSorter.ByteSequencesReader
Utility class to read length-prefixed byte[] entries from an input. Complementary to OfflineSorter.ByteSequencesWriter.
Inheritance
Implements
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public class ByteSequencesReader : IDisposable
Constructors
| Improve this Doc View SourceByteSequencesReader(DataInput)
Constructs a OfflineSorter.ByteSequencesReader from the provided DataInput.
Declaration
public ByteSequencesReader(DataInput inputStream)
Parameters
Type | Name | Description |
---|---|---|
DataInput | inputStream |
ByteSequencesReader(FileInfo)
Constructs a OfflineSorter.ByteSequencesReader from the provided System.IO.FileInfo.
Declaration
public ByteSequencesReader(FileInfo file)
Parameters
Type | Name | Description |
---|---|---|
System.IO.FileInfo | file |
Methods
| Improve this Doc View SourceDispose()
Disposes the provided DataInput if it is System.IDisposable.
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 |
Exceptions
Type | Condition |
---|---|
System.IO.EndOfStreamException | If the file ends before the full sequence is read. |
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 |
Exceptions
Type | Condition |
---|---|
System.IO.EndOfStreamException | If the file ends before the full sequence is read. |