Class IndexOutput
Abstract base class for output to a file in a Directory. A random-access output stream. Used for all Lucene index output operations.
IndexOutput may only be used from one thread, because it is not thread safe (it keeps internal state like file position).
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class IndexOutput : DataOutput, IDisposable
Properties
Name | Description |
---|---|
Checksum | Returns the current checksum of bytes written so far |
Length | Gets or Sets the file length. By default, this property's setter does nothing (it's optional for a Directory to implement it). But, certain Directory implementations (for example FSDirectory) can use this to inform the underlying IO system to pre-allocate the file to the specified size. If the length is longer than the current file length, the bytes added to the file are undefined. Otherwise the file is truncated. |
Methods
Name | Description |
---|---|
Dispose() | Closes this stream to further operations. |
Dispose(Boolean) | Closes this stream to further operations. |
Flush() | Forces any buffered output to be written. |
GetFilePointer() | Returns the current position in this file, where the next write will occur. |
Seek(Int64) | Sets current position in this file, where the next write will occur. |