Class Row
Inherited Members
Namespace: Egothor.Stemmer
Assembly: Lucene.Net.Analysis.Stempel.dll
Syntax
public class Row
Constructors
Row()
The default constructor for the Row object.
Declaration
public Row()
Row(Row)
Declaration
public Row(Row old)
Parameters
Type | Name | Description |
---|---|---|
Row | old | the Row to copy |
Row(IDataInput)
Construct a Row object from input carried in via the given input stream.
Declaration
public Row(IDataInput @is)
Parameters
Type | Name | Description |
---|---|---|
IDataInput | is | the input stream |
Exceptions
Type | Condition |
---|---|
IOException | if an I/O error occurs |
Methods
GetCells()
Return the number of cells in use.
Declaration
public int GetCells()
Returns
Type | Description |
---|---|
int | the number of cells in use |
GetCellsPnt()
Return the number of references (how many transitions) to other rows.
Declaration
public int GetCellsPnt()
Returns
Type | Description |
---|---|
int | the number of references |
GetCellsVal()
Return the number of patch commands saved in this Row.
Declaration
public int GetCellsVal()
Returns
Type | Description |
---|---|
int | the number of patch commands |
GetCmd(char)
Declaration
public int GetCmd(char way)
Parameters
Type | Name | Description |
---|---|---|
char | way | the char associated with the Cell holding the desired command |
Returns
Type | Description |
---|---|
int | the command |
GetCnt(char)
Return the number of patch commands were in the Cell associated with the given char before the Trie containing this Row was reduced.
Declaration
public int GetCnt(char way)
Parameters
Type | Name | Description |
---|---|---|
char | way |
Returns
Type | Description |
---|---|
int | the number of patch commands before reduction |
GetRef(char)
Declaration
public int GetRef(char way)
Parameters
Type | Name | Description |
---|---|---|
char | way |
Returns
Type | Description |
---|---|
int | the reference, or -1 if the Cell is |
Print(TextWriter)
Write the contents of this Row to the TextWriter.
Declaration
public virtual void Print(TextWriter @out)
Parameters
Type | Name | Description |
---|---|---|
TextWriter | out |
SetCmd(char, int)
Declaration
public void SetCmd(char way, int cmd)
Parameters
Type | Name | Description |
---|---|---|
char | way | |
int | cmd | the new command |
SetRef(char, int)
Declaration
public void SetRef(char way, int @ref)
Parameters
Type | Name | Description |
---|---|---|
char | way | |
int | ref | The new ref value |
Store(IDataOutput)
Write the contents of this Row to the given output stream.
Declaration
public virtual void Store(IDataOutput os)
Parameters
Type | Name | Description |
---|---|---|
IDataOutput | os | the output stream |
Exceptions
Type | Condition |
---|---|
IOException | if an I/O error occurs |
UniformCmd(bool)
Return the number of identical Cells (containing patch commands) in this Row.
Declaration
public int UniformCmd(bool eqSkip)
Parameters
Type | Name | Description |
---|---|---|
bool | eqSkip | when set to |
Returns
Type | Description |
---|---|
int | the number of identical Cells, or -1 if there are (at least) two different Cells |