C# Класс Egothor.Stemmer.Row

The Row class represents a row in a matrix representation of a Trie.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
At ( char index ) : Cell

Описание методов

GetCells() публичный Метод

Return the number of cells in use.
public GetCells ( ) : int
Результат int

GetCellsPnt() публичный Метод

Return the number of references (how many transitions) to other rows.
public GetCellsPnt ( ) : int
Результат int

GetCellsVal() публичный Метод

Return the number of patch commands saved in this Row.
public GetCellsVal ( ) : int
Результат int

GetCmd() публичный Метод

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
Результат int

GetCnt() публичный Метод

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
Результат int

GetRef() публичный Метод

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
Результат int

Print() публичный Метод

Write the contents of this Row to the TextWriter.
public Print ( TextWriter @out ) : void
@out System.IO.TextWriter
Результат void

Row() публичный Метод

The default constructor for the Row object.
public Row ( ) : Lucene.Net.Support
Результат Lucene.Net.Support

Row() публичный Метод

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
Результат Lucene.Net.Support

Row() публичный Метод

Construct a Row using the cells of the given Row.
public Row ( Row old ) : Lucene.Net.Support
old Row the to copy
Результат Lucene.Net.Support

SetCmd() публичный Метод

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
Результат void

SetRef() публичный Метод

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
Результат void

Store() публичный Метод

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
Результат void

UniformCmd() публичный Метод

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
Результат int