Class Row
Inheritance
Inherited Members
Namespace: Egothor.Stemmer
Assembly: Lucene.Net.Analysis.Stempel.dll
Syntax
public class Row
Constructors
| Improve this Doc View SourceRow()
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 |
---|---|---|
J2N.IO.IDataInput | is | the input stream |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if an I/O error occurs |
Methods
| Improve this Doc View SourceGetCells()
Return the number of cells in use.
Declaration
public int GetCells()
Returns
Type | Description |
---|---|
System.Int32 | 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 |
---|---|
System.Int32 | the number of references |
GetCellsVal()
Return the number of patch commands saved in this Row.
Declaration
public int GetCellsVal()
Returns
Type | Description |
---|---|
System.Int32 | the number of patch commands |
GetCmd(Char)
Return the command in the Cell associated with the given System.Char.
Declaration
public int GetCmd(char way)
Parameters
Type | Name | Description |
---|---|---|
System.Char | way | the System.Char associated with the Cell holding the desired command |
Returns
Type | Description |
---|---|
System.Int32 | the command |
GetCnt(Char)
Return the number of patch commands were in the Cell associated with the given System.Char before the Trie containing this Row was reduced.
Declaration
public int GetCnt(char way)
Parameters
Type | Name | Description |
---|---|---|
System.Char | way | the System.Char associated with the desired Cell |
Returns
Type | Description |
---|---|
System.Int32 | the number of patch commands before reduction |
GetRef(Char)
Declaration
public int GetRef(char way)
Parameters
Type | Name | Description |
---|---|---|
System.Char | way | the System.Char associated with the desired Cell |
Returns
Type | Description |
---|---|
System.Int32 | the reference, or -1 if the Cell is |
Print(TextWriter)
Write the contents of this Row to the System.IO.TextWriter.
Declaration
public virtual void Print(TextWriter out)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextWriter | out |
SetCmd(Char, Int32)
Set the command in the Cell of the given System.Char to the given System.Int32.
Declaration
public void SetCmd(char way, int cmd)
Parameters
Type | Name | Description |
---|---|---|
System.Char | way | the System.Char defining the Cell |
System.Int32 | cmd | the new command |
SetRef(Char, Int32)
Set the reference to the next row in the Cell of the given System.Char to the given System.Int32.
Declaration
public void SetRef(char way, int ref)
Parameters
Type | Name | Description |
---|---|---|
System.Char | way | the System.Char defining the Cell |
System.Int32 | 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 |
---|---|---|
J2N.IO.IDataOutput | os | the output stream |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if an I/O error occurs |
UniformCmd(Boolean)
Return the number of identical Cells (containing patch commands) in this Row.
Declaration
public int UniformCmd(bool eqSkip)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | eqSkip | when set to |
Returns
Type | Description |
---|---|
System.Int32 | the number of identical Cells, or -1 if there are (at least) two different Cells |