| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.egothor.stemmer.Row
public class 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(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(Character way)
Return the command in the Cell associated with the given Character.  | 
 int | 
getCnt(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(Character way)
Return the reference to the next Row in the Cell associated with the given Character.  | 
 void | 
print(PrintStream out)
Write the contents of this Row to the printstream.  | 
 void | 
setCmd(Character way,
       int cmd)
Set the command in the Cell of the given Character to the given integer.  | 
 void | 
setRef(Character way,
       int ref)
Set the reference to the next row in the Cell of the given Character to the given integer.  | 
 void | 
store(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(DataInput is)
    throws IOException
is - the input stream
IOException - if an I/O error occurspublic Row()
public Row(Row old)
old - the Row to copy| Method Detail | 
|---|
public void setCmd(Character way,
                   int cmd)
way - the Character defining the Cellcmd - the new command
public void setRef(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(Character way)
way - the Character associated with the Cell holding the desired
          command
public int getCnt(Character way)
way - the Character associated with the desired Cell
public int getRef(Character way)
way - the Character associated with the desired Cell
public void store(DataOutput os)
           throws IOException
os - the output stream
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(PrintStream out)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||