Class OfflineSorter.ByteSequencesReader
Utility class to read length-prefixed byte[] entries from an input.
Complementary to Offline
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 Offline
Declaration
public ByteSequencesReader(DataInput inputStream)
Parameters
Type | Name | Description |
---|---|---|
Data |
inputStream |
ByteSequencesReader(FileInfo)
Constructs a Offline
Declaration
public ByteSequencesReader(FileInfo file)
Parameters
Type | Name | Description |
---|---|---|
System. |
file |
Methods
| Improve this Doc View SourceDispose()
Disposes the provided Data
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System. |
disposing |
Read()
Reads the next entry and returns it if successful.
Declaration
public virtual byte[] Read()
Returns
Type | Description |
---|---|
System. |
Returns |
Exceptions
Type | Condition |
---|---|
System. |
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 Bytes
Declaration
public virtual bool Read(BytesRef ref)
Parameters
Type | Name | Description |
---|---|---|
Bytes |
ref |
Returns
Type | Description |
---|---|
System. |
Returns |
Exceptions
Type | Condition |
---|---|
System. |
If the file ends before the full sequence is read. |