Class OfflineSorter.ByteSequencesWriter
Utility class to emit length-prefixed byte[] entries to an output stream for sorting. Complementary to OfflineSorter.ByteSequencesReader.
Inheritance
System.Object
OfflineSorter.ByteSequencesWriter
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public class ByteSequencesWriter : IDisposable
Constructors
| Improve this Doc View SourceByteSequencesWriter(FileInfo)
Constructs a OfflineSorter.ByteSequencesWriter to the provided
Declaration
public ByteSequencesWriter(FileInfo file)
Parameters
Type | Name | Description |
---|---|---|
FileInfo | file |
ByteSequencesWriter(DataOutput)
Constructs a OfflineSorter.ByteSequencesWriter to the provided DataOutput.
Declaration
public ByteSequencesWriter(DataOutput os)
Parameters
Type | Name | Description |
---|---|---|
DataOutput | os |
Methods
| Improve this Doc View SourceDispose()
Disposes the provided DataOutput if it is
Declaration
public void Dispose()
Write(BytesRef)
Writes a BytesRef.
Declaration
public virtual void Write(BytesRef ref)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | ref |
See Also
| Improve this Doc View SourceWrite(Byte[])
Writes a byte array.
Declaration
public virtual void Write(byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | bytes |
See Also
| Improve this Doc View SourceWrite(Byte[], Int32, Int32)
Writes a byte array.
The length is written as a
Declaration
public virtual void Write(byte[] bytes, int off, int len)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | bytes | |
System.Int32 | off | |
System.Int32 | len |