Class SimpleFSDirectory.SimpleFSIndexInput
Reads bytes with Seek(long, SeekOrigin) followed by Read(byte[], int, int).
Implements
Inherited Members
Namespace: Lucene.Net.Store
Assembly: Lucene.Net.dll
Syntax
protected class SimpleFSDirectory.SimpleFSIndexInput : BufferedIndexInput, IDisposable
Constructors
SimpleFSIndexInput(string, FileStream, IOContext)
Reads bytes with Seek(long, SeekOrigin) followed by Read(byte[], int, int).
Declaration
public SimpleFSIndexInput(string resourceDesc, FileStream file, IOContext context)
Parameters
Type | Name | Description |
---|---|---|
string | resourceDesc | |
FileStream | file | |
IOContext | context |
SimpleFSIndexInput(string, FileStream, long, long, int)
Reads bytes with Seek(long, SeekOrigin) followed by Read(byte[], int, int).
Declaration
public SimpleFSIndexInput(string resourceDesc, FileStream file, long off, long length, int bufferSize)
Parameters
Type | Name | Description |
---|---|---|
string | resourceDesc | |
FileStream | file | |
long | off | |
long | length | |
int | bufferSize |
Fields
m_end
end offset (start+length)
Declaration
protected readonly long m_end
Field Value
Type | Description |
---|---|
long |
m_file
the file channel we will read from
Declaration
protected readonly FileStream m_file
Field Value
Type | Description |
---|---|
FileStream |
m_off
start offset: non-zero in the slice case
Declaration
protected readonly long m_off
Field Value
Type | Description |
---|---|
long |
Properties
IsClone
is this instance a clone and hence does not own the file to close it
Declaration
public bool IsClone { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsFDValid
Reads bytes with Seek(long, SeekOrigin) followed by Read(byte[], int, int).
Declaration
public virtual bool IsFDValid { get; }
Property Value
Type | Description |
---|---|
bool |
Length
The number of bytes in the file.
Declaration
public override sealed long Length { get; }
Property Value
Type | Description |
---|---|
long |
Overrides
Methods
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 ObjectDisposedException when the original one is closed.Declaration
public override object Clone()
Returns
Type | Description |
---|---|
object |
Overrides
Dispose(bool)
Closes the stream to further operations.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
Overrides
ReadInternal(byte[], int, int)
IndexInput methods
Declaration
protected override void ReadInternal(byte[] b, int offset, int len)
Parameters
Type | Name | Description |
---|---|---|
byte[] | b | |
int | offset | |
int | len |
Overrides
SeekInternal(long)
Expert: implements seek. Sets current position in this file, where the next ReadInternal(byte[], int, int) will occur.
Declaration
protected override void SeekInternal(long position)
Parameters
Type | Name | Description |
---|---|---|
long | position |