Class SimpleFSDirectory.SimpleFSIndexInput
Reads bytes with System.IO.FileStream.Seek(System.Int64,System.IO.SeekOrigin) followed by System.IO.FileStream.Read(System.Byte[],System.Int32,System.Int32).
Inheritance
System.Object
SimpleFSDirectory.SimpleFSIndexInput
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 SimpleFSIndexInput : BufferedIndexInput, IDisposable
Constructors
| Improve this Doc View SourceSimpleFSIndexInput(String, FileStream, IOContext)
Declaration
public SimpleFSIndexInput(string resourceDesc, FileStream file, IOContext context)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceDesc | |
System.IO.FileStream | file | |
IOContext | context |
SimpleFSIndexInput(String, FileStream, Int64, Int64, Int32)
Declaration
public SimpleFSIndexInput(string resourceDesc, FileStream file, long off, long length, int bufferSize)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceDesc | |
System.IO.FileStream | file | |
System.Int64 | off | |
System.Int64 | length | |
System.Int32 | bufferSize |
Fields
| Improve this Doc View Sourcem_end
end offset (start+length)
Declaration
protected readonly long m_end
Field Value
Type | Description |
---|---|
System.Int64 |
m_file
the file channel we will read from
Declaration
protected readonly FileStream m_file
Field Value
Type | Description |
---|---|
System.IO.FileStream |
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 SourceIsClone
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 |
---|---|
System.Boolean |
IsFDValid
Declaration
public virtual bool IsFDValid { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Length
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 SourceReadInternal(Byte[], Int32, Int32)
IndexInput methods
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 position)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | position |
Overrides
Implements
System.IDisposable