Class NIOFSDirectory.NIOFSIndexInput
Reads bytes with the Read(Stream, ByteBuffer, long) extension method for Stream.
Implements
Inherited Members
Namespace: Lucene.Net.Store
Assembly: Lucene.Net.dll
Syntax
protected class NIOFSDirectory.NIOFSIndexInput : BufferedIndexInput, IDisposable
Constructors
NIOFSIndexInput(string, FileStream, IOContext)
Reads bytes with the Read(Stream, ByteBuffer, long) extension method for Stream.
Declaration
public NIOFSIndexInput(string resourceDesc, FileStream fc, IOContext context)
Parameters
Type | Name | Description |
---|---|---|
string | resourceDesc | |
FileStream | fc | |
IOContext | context |
NIOFSIndexInput(string, FileStream, long, long, int)
Reads bytes with the Read(Stream, ByteBuffer, long) extension method for Stream.
Declaration
public NIOFSIndexInput(string resourceDesc, FileStream fc, long off, long length, int bufferSize)
Parameters
Type | Name | Description |
---|---|---|
string | resourceDesc | |
FileStream | fc | |
long | off | |
long | length | |
int | bufferSize |
Fields
m_channel
the file channel we will read from
Declaration
protected readonly FileStream m_channel
Field Value
Type | Description |
---|---|
FileStream |
m_end
end offset (start+length)
Declaration
protected readonly long m_end
Field Value
Type | Description |
---|---|
long |
m_off
start offset: non-zero in the slice case
Declaration
protected readonly long m_off
Field Value
Type | Description |
---|---|
long |
Properties
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
NewBuffer(byte[])
Reads bytes with the Read(Stream, ByteBuffer, long) extension method for Stream.
Declaration
protected override void NewBuffer(byte[] newBuffer)
Parameters
Type | Name | Description |
---|---|---|
byte[] | newBuffer |
Overrides
ReadInternal(byte[], int, int)
Expert: implements buffer refill. Reads bytes from the current position in the input.
Declaration
protected override void ReadInternal(byte[] b, int offset, int len)
Parameters
Type | Name | Description |
---|---|---|
byte[] | b | the array to read bytes into |
int | offset | the offset in the array to start storing bytes |
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 pos)
Parameters
Type | Name | Description |
---|---|---|
long | pos |