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
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public class ByteSequencesWriter : IDisposable
Constructors
| Improve this Doc View SourceByteSequencesWriter(DataOutput)
Constructs a OfflineSorter.ByteSequencesWriter to the provided DataOutput.
Declaration
public ByteSequencesWriter(DataOutput os)
Parameters
| Type | Name | Description |
|---|---|---|
| DataOutput | os |
ByteSequencesWriter(FileInfo)
Constructs a OfflineSorter.ByteSequencesWriter to the provided System.IO.FileInfo.
Declaration
public ByteSequencesWriter(FileInfo file)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.FileInfo | file |
Methods
| Improve this Doc View SourceDispose()
Disposes the provided DataOutput if it is System.IDisposable.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes the provided DataOutput if it is System.IDisposable.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing |
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 System.Int16, followed by the bytes.
Declaration
public virtual void Write(byte[] bytes, int off, int len)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | bytes | |
| System.Int32 | off | |
| System.Int32 | len |
Implements
System.IDisposable