C# Class Lucene.Net.Store.NIOFSDirectory.NIOFSIndexInput

Reads bytes with FileChannel#read(ByteBuffer, long)
Inheritance: BufferedIndexInput
显示文件 Open project: paulirwin/lucene.net

Protected Properties

Property Type Description
Channel System.IO.FileStream
End long
Off long

Public Methods

Method Description
Clone ( ) : object
Dispose ( ) : void
Length ( ) : long
NIOFSIndexInput ( string resourceDesc, FileStream fc, IOContext context ) : System.Threading
NIOFSIndexInput ( string resourceDesc, FileStream fc, long off, long length, int bufferSize ) : System.Threading

Protected Methods

Method Description
NewBuffer ( byte newBuffer ) : void
ReadInternal ( byte b, int offset, int len ) : void
SeekInternal ( long pos ) : void

Method Details

Clone() public method

public Clone ( ) : object
return object

Dispose() public method

public Dispose ( ) : void
return void

Length() public final method

public final Length ( ) : long
return long

NIOFSIndexInput() public method

public NIOFSIndexInput ( string resourceDesc, FileStream fc, IOContext context ) : System.Threading
resourceDesc string
fc System.IO.FileStream
context IOContext
return System.Threading

NIOFSIndexInput() public method

public NIOFSIndexInput ( string resourceDesc, FileStream fc, long off, long length, int bufferSize ) : System.Threading
resourceDesc string
fc System.IO.FileStream
off long
length long
bufferSize int
return System.Threading

NewBuffer() protected method

protected NewBuffer ( byte newBuffer ) : void
newBuffer byte
return void

ReadInternal() protected method

protected ReadInternal ( byte b, int offset, int len ) : void
b byte
offset int
len int
return void

SeekInternal() protected method

protected SeekInternal ( long pos ) : void
pos long
return void

Property Details

Channel protected_oe property

the file channel we will read from
protected FileStream,System.IO Channel
return System.IO.FileStream

End protected_oe property

end offset (start+length)
protected long End
return long

Off protected_oe property

start offset: non-zero in the slice case
protected long Off
return long