C# Class Lucene.Net.Store.BufferedIndexInput

Base implementation class for buffered IndexInput.
Inheritance: IndexInput
Afficher le fichier Open project: paulirwin/lucene.net Class Usage Examples

Protected Properties

Свойство Type Description
Buffer byte[]

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
CheckBufferSize ( int bufferSize ) : void
Refill ( ) : void

Method Details

BufferSize() public static méthode

Returns default buffer sizes for the given IOContext
public static BufferSize ( IOContext context ) : int
context IOContext
Résultat int

BufferedIndexInput() public méthode

public BufferedIndexInput ( string resourceDesc ) : System
resourceDesc string
Résultat System

BufferedIndexInput() public méthode

public BufferedIndexInput ( string resourceDesc, IOContext context ) : System
resourceDesc string
context IOContext
Résultat System

BufferedIndexInput() public méthode

Inits BufferedIndexInput with a specific bufferSize
public BufferedIndexInput ( string resourceDesc, int bufferSize ) : System
resourceDesc string
bufferSize int
Résultat System

Clone() public méthode

public Clone ( ) : object
Résultat object

FlushBuffer() protected méthode

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
Résultat int

NewBuffer() protected méthode

protected NewBuffer ( byte newBuffer ) : void
newBuffer byte
Résultat void

ReadByte() public final méthode

public final ReadByte ( ) : byte
Résultat byte

ReadBytes() public final méthode

public final ReadBytes ( byte b, int offset, int len ) : void
b byte
offset int
len int
Résultat void

ReadBytes() public final méthode

public final ReadBytes ( byte b, int offset, int len, bool useBuffer ) : void
b byte
offset int
len int
useBuffer bool
Résultat void

ReadInt() public final méthode

public final ReadInt ( ) : int
Résultat int

ReadInternal() protected abstract méthode

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
Résultat void

ReadLong() public final méthode

public final ReadLong ( ) : long
Résultat long

ReadShort() public final méthode

public final ReadShort ( ) : short
Résultat short

ReadVInt() public final méthode

public final ReadVInt ( ) : int
Résultat int

ReadVLong() public final méthode

public final ReadVLong ( ) : long
Résultat long

Seek() public final méthode

public final Seek ( long pos ) : void
pos long
Résultat void

SeekInternal() protected abstract méthode

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
Résultat void

Property Details

Buffer protected_oe property

protected byte[] Buffer
Résultat byte[]