Class DataOutput
Abstract base class for performing write operations of Lucene's low-level data types.
DataOutput may only be used from one thread, because it is not thread safe (it keeps internal state like file position).
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class DataOutput : object
Methods
Name | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CopyBytes(DataInput, Int64) | Copy numBytes bytes from input to ourself. |
||||||||||||||||||||||||||||
WriteByte(Byte) | Writes a single byte. The most primitive data type is an eight-bit byte. Files are accessed as sequences of bytes. All other data types are defined as sequences of bytes, so file formats are byte-order independent. |
||||||||||||||||||||||||||||
WriteBytes(Byte[], Int32) | Writes an array of bytes. |
||||||||||||||||||||||||||||
WriteBytes(Byte[], Int32, Int32) | Writes an array of bytes. |
||||||||||||||||||||||||||||
WriteInt16(Int16) | Writes a short as two bytes. NOTE: this was writeShort() in Lucene |
||||||||||||||||||||||||||||
WriteInt32(Int32) | Writes an 32-bit unsigned integer written as four bytes, high-order bytes first. NOTE: this was writeInt() in Lucene |
||||||||||||||||||||||||||||
WriteInt64(Int64) | Writes a 64-bit unsigned integer written as eight bytes, high-order bytes first. NOTE: this was writeLong() in Lucene |
||||||||||||||||||||||||||||
WriteString(String) | Writes a string. Writes strings as UTF-8 encoded bytes. First the length, in bytes, is written as a WriteVInt32(Int32), followed by the bytes. |
||||||||||||||||||||||||||||
WriteStringSet(ISet<String>) | Writes a First the size is written as an WriteInt32(Int32), followed by each value written as a WriteString(String). |
||||||||||||||||||||||||||||
WriteStringStringMap(IDictionary<String, String>) | Writes a First the size is written as an WriteInt32(Int32), followed by each key-value pair written as two consecutive WriteString(String)s. |
||||||||||||||||||||||||||||
WriteVInt32(Int32) | Writes an VByte is a variable-length format for positive integers is defined where the high-order bit of each byte indicates whether more bytes remain to be read. The low-order seven bits are appended as increasingly more significant bits in the resulting integer value. Thus values from zero to 127 may be stored in a single byte, values from 128 to 16,383 may be stored in two bytes, and so on. VByte Encoding Example
this provides compression while still being efficient to decode. NOTE: this was writeVInt() in Lucene |
||||||||||||||||||||||||||||
WriteVInt64(Int64) | Writes an The format is described further in WriteVInt32(Int32). NOTE: this was writeVLong() in Lucene |