C# Class Lucene.Net.Util.Fst.BytesStore

Inheritance: DataOutput
Datei anzeigen Open project: apache/lucenenet Class Usage Examples

Private Properties

Property Type Description
GetReverseReader FST.BytesReader
WriteBytes void

Public Methods

Method Description
BytesStore ( DataInput @in, long numBytes, int maxBlockSize ) : System

Pulls bytes from the provided IndexInput.

BytesStore ( int blockBits ) : System
CopyBytes ( long src, long dest, int len ) : void

Absolute copy bytes self to self, without changing the position. Note: this cannot "grow" the bytes, so must only call it on already written parts.

Finish ( ) : void
Reverse ( long srcPos, long destPos ) : void

Reverse from srcPos, inclusive, to destPos, inclusive.

SkipBytes ( int len ) : void
Truncate ( long newLen ) : void

Pos must be less than the max position written so far! Ie, you cannot "grow" the file with this!

WriteByte ( byte b ) : void
WriteByte ( int dest, byte b ) : void

Absolute write byte; you must ensure dest is < max position written so far.

WriteBytes ( byte b, int offset, int len ) : void
WriteInt ( long pos, int value ) : void

Writes an int at the absolute position without changing the current pointer.

WriteTo ( DataOutput @out ) : void

Writes all of our bytes to the target DataOutput.

Private Methods

Method Description
GetReverseReader ( bool allowSingle ) : FST.BytesReader
WriteBytes ( long dest, byte b, int offset, int len ) : void

Absolute writeBytes without changing the current position. Note: this cannot "grow" the bytes, so you must only call it on already written parts.

Method Details

BytesStore() public method

Pulls bytes from the provided IndexInput.
public BytesStore ( DataInput @in, long numBytes, int maxBlockSize ) : System
@in DataInput
numBytes long
maxBlockSize int
return System

BytesStore() public method

public BytesStore ( int blockBits ) : System
blockBits int
return System

CopyBytes() public method

Absolute copy bytes self to self, without changing the position. Note: this cannot "grow" the bytes, so must only call it on already written parts.
public CopyBytes ( long src, long dest, int len ) : void
src long
dest long
len int
return void

Finish() public method

public Finish ( ) : void
return void

Reverse() public method

Reverse from srcPos, inclusive, to destPos, inclusive.
public Reverse ( long srcPos, long destPos ) : void
srcPos long
destPos long
return void

SkipBytes() public method

public SkipBytes ( int len ) : void
len int
return void

Truncate() public method

Pos must be less than the max position written so far! Ie, you cannot "grow" the file with this!
public Truncate ( long newLen ) : void
newLen long
return void

WriteByte() public method

public WriteByte ( byte b ) : void
b byte
return void

WriteByte() public method

Absolute write byte; you must ensure dest is < max position written so far.
public WriteByte ( int dest, byte b ) : void
dest int
b byte
return void

WriteBytes() public method

public WriteBytes ( byte b, int offset, int len ) : void
b byte
offset int
len int
return void

WriteInt() public method

Writes an int at the absolute position without changing the current pointer.
public WriteInt ( long pos, int value ) : void
pos long
value int
return void

WriteTo() public method

Writes all of our bytes to the target DataOutput.
public WriteTo ( DataOutput @out ) : void
@out DataOutput
return void