C# 클래스 Lucene.Net.Store.BufferedIndexInput

Base implementation class for buffered IndexInput.
상속: IndexInput
파일 보기 프로젝트 열기: paulirwin/lucene.net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
Buffer byte[]

공개 메소드들

메소드 설명
BufferSize ( IOContext context ) : int

Returns default buffer sizes for the given IOContext

BufferedIndexInput ( string resourceDesc ) : System
BufferedIndexInput ( string resourceDesc, IOContext context ) : System
BufferedIndexInput ( string resourceDesc, int bufferSize ) : System

Inits BufferedIndexInput with a specific bufferSize

Clone ( ) : object
ReadByte ( ) : byte
ReadBytes ( byte b, int offset, int len ) : void
ReadBytes ( byte b, int offset, int len, bool useBuffer ) : void
ReadInt ( ) : int
ReadLong ( ) : long
ReadShort ( ) : short
ReadVInt ( ) : int
ReadVLong ( ) : long
Seek ( long pos ) : void

보호된 메소드들

메소드 설명
FlushBuffer ( Lucene.Net.Store.IndexOutput @out, long numBytes ) : int

Flushes the in-memory buffer to the given output, copying at most numBytes.

NOTE: this method does not refill the buffer, however it does advance the buffer position.

NewBuffer ( byte newBuffer ) : void
ReadInternal ( byte b, int offset, int length ) : void

Expert: implements buffer refill. Reads bytes from the current position in the input.

SeekInternal ( long pos ) : void

Expert: implements seek. Sets current position in this file, where the next #readInternal(byte[],int,int) will occur.

비공개 메소드들

메소드 설명
CheckBufferSize ( int bufferSize ) : void
Refill ( ) : void

메소드 상세

BufferSize() 공개 정적인 메소드

Returns default buffer sizes for the given IOContext
public static BufferSize ( IOContext context ) : int
context IOContext
리턴 int

BufferedIndexInput() 공개 메소드

public BufferedIndexInput ( string resourceDesc ) : System
resourceDesc string
리턴 System

BufferedIndexInput() 공개 메소드

public BufferedIndexInput ( string resourceDesc, IOContext context ) : System
resourceDesc string
context IOContext
리턴 System

BufferedIndexInput() 공개 메소드

Inits BufferedIndexInput with a specific bufferSize
public BufferedIndexInput ( string resourceDesc, int bufferSize ) : System
resourceDesc string
bufferSize int
리턴 System

Clone() 공개 메소드

public Clone ( ) : object
리턴 object

FlushBuffer() 보호된 메소드

Flushes the in-memory buffer to the given output, copying at most numBytes.

NOTE: this method does not refill the buffer, however it does advance the buffer position.

protected FlushBuffer ( Lucene.Net.Store.IndexOutput @out, long numBytes ) : int
@out Lucene.Net.Store.IndexOutput
numBytes long
리턴 int

NewBuffer() 보호된 메소드

protected NewBuffer ( byte newBuffer ) : void
newBuffer byte
리턴 void

ReadByte() 공개 최종 메소드

public final ReadByte ( ) : byte
리턴 byte

ReadBytes() 공개 최종 메소드

public final ReadBytes ( byte b, int offset, int len ) : void
b byte
offset int
len int
리턴 void

ReadBytes() 공개 최종 메소드

public final ReadBytes ( byte b, int offset, int len, bool useBuffer ) : void
b byte
offset int
len int
useBuffer bool
리턴 void

ReadInt() 공개 최종 메소드

public final ReadInt ( ) : int
리턴 int

ReadInternal() 보호된 추상적인 메소드

Expert: implements buffer refill. Reads bytes from the current position in the input.
protected abstract ReadInternal ( byte b, int offset, int length ) : void
b byte the array to read bytes into
offset int the offset in the array to start storing bytes
length int the number of bytes to read
리턴 void

ReadLong() 공개 최종 메소드

public final ReadLong ( ) : long
리턴 long

ReadShort() 공개 최종 메소드

public final ReadShort ( ) : short
리턴 short

ReadVInt() 공개 최종 메소드

public final ReadVInt ( ) : int
리턴 int

ReadVLong() 공개 최종 메소드

public final ReadVLong ( ) : long
리턴 long

Seek() 공개 최종 메소드

public final Seek ( long pos ) : void
pos long
리턴 void

SeekInternal() 보호된 추상적인 메소드

Expert: implements seek. Sets current position in this file, where the next #readInternal(byte[],int,int) will occur.
protected abstract SeekInternal ( long pos ) : void
pos long
리턴 void

프로퍼티 상세

Buffer 보호되어 있는 프로퍼티

protected byte[] Buffer
리턴 byte[]