Class NIOFSDirectory.NIOFSIndexInput
Reads bytes with the Read(FileStream, ByteBuffer, Int64) extension method for System.IO.FileStream.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Store
Assembly: Lucene.Net.dll
Syntax
protected class NIOFSIndexInput : BufferedIndexInput, IDisposable
Constructors
| Improve this Doc View SourceNIOFSIndexInput(String, FileStream, IOContext)
Declaration
public NIOFSIndexInput(string resourceDesc, FileStream fc, IOContext context)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceDesc | |
System.IO.FileStream | fc | |
IOContext | context |
NIOFSIndexInput(String, FileStream, Int64, Int64, Int32)
Declaration
public NIOFSIndexInput(string resourceDesc, FileStream fc, long off, long length, int bufferSize)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceDesc | |
System.IO.FileStream | fc | |
System.Int64 | off | |
System.Int64 | length | |
System.Int32 | bufferSize |
Fields
| Improve this Doc View Sourcem_channel
the file channel we will read from
Declaration
protected readonly FileStream m_channel
Field Value
Type | Description |
---|---|
System.IO.FileStream |
m_end
end offset (start+length)
Declaration
protected readonly long m_end
Field Value
Type | Description |
---|---|
System.Int64 |
m_off
start offset: non-zero in the slice case
Declaration
protected readonly long m_off
Field Value
Type | Description |
---|---|
System.Int64 |
Properties
| Improve this Doc View SourceLength
Declaration
public override sealed long Length { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Overrides
Methods
| Improve this Doc View SourceClone()
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object |
Overrides
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
| Improve this Doc View SourceNewBuffer(Byte[])
Declaration
protected override void NewBuffer(byte[] newBuffer)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | newBuffer |
Overrides
| Improve this Doc View SourceReadInternal(Byte[], Int32, Int32)
Declaration
protected override void ReadInternal(byte[] b, int offset, int len)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | b | |
System.Int32 | offset | |
System.Int32 | len |
Overrides
| Improve this Doc View SourceSeekInternal(Int64)
Declaration
protected override void SeekInternal(long pos)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | pos |
Overrides
Implements
System.IDisposable