Class DataInput
Abstract base class for performing read operations of Lucene's low-level data types.
DataInput may only be used from one thread, because it is not thread safe (it keeps internal state like file position). To allow multithreaded use, every DataInput instance must be cloned before used in another thread. Subclasses must therefore implement Clone(), returning a new DataInput which operates on the same underlying resource, but positioned independently.
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class DataInput : object
Methods
Name | Description |
---|---|
Clone() | Returns a clone of this stream. Clones of a stream access the same data, and are positioned at the same point as the stream they were cloned from. Expert: Subclasses must ensure that clones may be positioned at different points in the input from each other and from the stream they were cloned from. |
ReadByte() | Reads and returns a single byte. |
ReadBytes(Byte[], Int32, Int32) | Reads a specified number of bytes into an array at the specified offset. |
ReadBytes(Byte[], Int32, Int32, Boolean) | Reads a specified number of bytes into an array at the
specified offset with control over whether the read
should be buffered (callers who have their own buffer
should pass in "false" for |
ReadInt16() | Reads two bytes and returns a LUCENENET NOTE: Important - always cast to ushort (System.UInt16) before using to ensure the value is positive! NOTE: this was readShort() in Lucene |
ReadInt32() | Reads four bytes and returns an NOTE: this was readInt() in Lucene |
ReadInt64() | Reads eight bytes and returns a NOTE: this was readLong() in Lucene |
ReadString() | Reads a |
ReadStringSet() | Reads a ISet<string> previously written with WriteStringSet(ISet<String>). |
ReadStringStringMap() | Reads a IDictionary<string,string> previously written with WriteStringStringMap(IDictionary<String, String>). |
ReadVInt32() | Reads an The format is described further in WriteVInt32(Int32). NOTE: this was readVInt() in Lucene |
ReadVInt64() | Reads a The format is described further in WriteVInt32(Int32). NOTE: this was readVLong() in Lucene |
SkipBytes(Int64) | Skip over |