Class IndexInput
Abstract base class for input from a file in a Directory. A random-access input stream. Used for all Lucene index input operations.
IndexInput 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 IndexInput instance must be cloned before
used in another thread. Subclasses must therefore implement Clone(),
returning a new IndexInput which operates on the same underlying
resource, but positioned independently. Lucene never closes cloned
IndexInputs, it will only do this on the original one.
The original instance must take care that cloned instances throw
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class IndexInput : DataInput, IDisposable
Constructors
Name | Description |
---|---|
IndexInput(String) |
|
Fields
Name | Description |
---|---|
disposed | |
parent |
Properties
Name | Description |
---|---|
Length | The number of bytes in the file. |
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. Warning: Lucene never closes cloned
IndexInputs, it will only do this on the original one.
The original instance must take care that cloned instances throw
|
Dispose() | Closes the stream to further operations. |
Dispose(Boolean) | Closes the stream to further operations. |
EnsureOpen() | |
GetFilePointer() | Returns the current position in this file, where the next read will occur. |
Seek(Int64) | Sets current position in this file, where the next read will occur. |
ToString() | Returns the resourceDescription that was passed into the constructor. |