C# Class Egothor.Stemmer.Row

The Row class represents a row in a matrix representation of a Trie.
Mostra file Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
GetCells ( ) : int

Return the number of cells in use.

GetCellsPnt ( ) : int

Return the number of references (how many transitions) to other rows.

GetCellsVal ( ) : int

Return the number of patch commands saved in this Row.

GetCmd ( char way ) : int

Return the command in the Cell associated with the given char.

GetCnt ( char way ) : int

Return the number of patch commands were in the Cell associated with the given char before the Trie containing this Row was reduced.

GetRef ( char way ) : int

Return the reference to the next Row in the Cell associated with the given char.

Print ( TextWriter @out ) : void

Write the contents of this Row to the TextWriter.

Row ( ) : Lucene.Net.Support

The default constructor for the Row object.

Row ( IDataInput @is ) : Lucene.Net.Support

Construct a Row object from input carried in via the given input stream.

Row ( Row old ) : Lucene.Net.Support

Construct a Row using the cells of the given Row.

SetCmd ( char way, int cmd ) : void

Set the command in the Cell of the given char to the given int.

SetRef ( char way, int @ref ) : void

Set the reference to the next row in the Cell of the given char to the given int.

Store ( IDataOutput os ) : void

Write the contents of this Row to the given output stream.

UniformCmd ( bool eqSkip ) : int

Return the number of identical Cells (containing patch commands) in this Row.

Private Methods

Method Description
At ( char index ) : Cell

Method Details

GetCells() public method

Return the number of cells in use.
public GetCells ( ) : int
return int

GetCellsPnt() public method

Return the number of references (how many transitions) to other rows.
public GetCellsPnt ( ) : int
return int

GetCellsVal() public method

Return the number of patch commands saved in this Row.
public GetCellsVal ( ) : int
return int

GetCmd() public method

Return the command in the Cell associated with the given char.
public GetCmd ( char way ) : int
way char the associated with the holding the desired command
return int

GetCnt() public method

Return the number of patch commands were in the Cell associated with the given char before the Trie containing this Row was reduced.
public GetCnt ( char way ) : int
way char the associated with the desired
return int

GetRef() public method

Return the reference to the next Row in the Cell associated with the given char.
public GetRef ( char way ) : int
way char the associated with the desired
return int

Print() public method

Write the contents of this Row to the TextWriter.
public Print ( TextWriter @out ) : void
@out System.IO.TextWriter
return void

Row() public method

The default constructor for the Row object.
public Row ( ) : Lucene.Net.Support
return Lucene.Net.Support

Row() public method

Construct a Row object from input carried in via the given input stream.
if an I/O error occurs
public Row ( IDataInput @is ) : Lucene.Net.Support
@is IDataInput the input stream
return Lucene.Net.Support

Row() public method

Construct a Row using the cells of the given Row.
public Row ( Row old ) : Lucene.Net.Support
old Row the to copy
return Lucene.Net.Support

SetCmd() public method

Set the command in the Cell of the given char to the given int.
public SetCmd ( char way, int cmd ) : void
way char the defining the
cmd int the new command
return void

SetRef() public method

Set the reference to the next row in the Cell of the given char to the given int.
public SetRef ( char way, int @ref ) : void
way char the defining the
@ref int
return void

Store() public method

Write the contents of this Row to the given output stream.
if an I/O error occurs
public Store ( IDataOutput os ) : void
os IDataOutput the output stream
return void

UniformCmd() public method

Return the number of identical Cells (containing patch commands) in this Row.
public UniformCmd ( bool eqSkip ) : int
eqSkip bool when set to false the removed patch commands are considered
return int