|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.stemmer.Row
The Row class represents a row in a matrix representation of a trie.
Constructor Summary | |
Row()
The default constructor for the Row object. |
|
Row(java.io.DataInput is)
Construct a Row object from input carried in via the given input stream. |
|
Row(Row old)
Construct a Row using the cells of the given Row. |
Method Summary | |
int |
getCells()
Return the number of cells in use. |
int |
getCellsPnt()
Return the number of references (how many transitions) to other rows. |
int |
getCellsVal()
Return the number of patch commands saved in this Row. |
int |
getCmd(java.lang.Character way)
Return the command in the Cell associated with the given Character. |
int |
getCnt(java.lang.Character way)
Return the number of patch commands were in the Cell associated with the given Character before the Trie containing this Row was reduced. |
int |
getRef(java.lang.Character way)
Return the reference to the next Row in the Cell associated with the given Character. |
void |
print()
Write the contents of this Row to stdout. |
void |
setCmd(java.lang.Character way,
int cmd)
Set the command in the Cell of the given Character to the given integer. |
void |
setRef(java.lang.Character way,
int ref)
Set the reference to the next row in the Cell of the given Character to the given integer. |
void |
store(java.io.DataOutput os)
Write the contents of this Row to the given output stream. |
int |
uniformCmd(boolean eqSkip)
Return the number of identical Cells (containing patch commands) in this Row. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Row(java.io.DataInput is) throws java.io.IOException
is
- the input stream
java.io.IOException
- if an I/O error occurspublic Row()
public Row(Row old)
old
- the Row to copyMethod Detail |
public void setCmd(java.lang.Character way, int cmd)
way
- the Character defining the Cellcmd
- the new commandpublic void setRef(java.lang.Character way, int ref)
way
- the Character defining the Cellref
- The new ref valuepublic int getCells()
public int getCellsPnt()
public int getCellsVal()
public int getCmd(java.lang.Character way)
way
- the Character associated with the Cell holding the
desired command
public int getCnt(java.lang.Character way)
way
- the Character associated with the desired Cell
public int getRef(java.lang.Character way)
way
- the Character associated with the desired Cell
public void store(java.io.DataOutput os) throws java.io.IOException
os
- the output stream
java.io.IOException
- if an I/O error occurspublic int uniformCmd(boolean eqSkip)
eqSkip
- when set to false the removed patch
commands are considered
public void print()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |