public class Row extends Object
| Constructor and Description | 
|---|
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
public Row(DataInput is) throws IOException
is - the input streamIOException - if an I/O error occurspublic Row()
public Row(Row old)
old - the Row to copypublic void setCmd(Character way, int cmd)
way - the Character defining the Cellcmd - the new commandpublic 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
          commandpublic int getCnt(Character way)
way - the Character associated with the desired Cellpublic int getRef(Character way)
way - the Character associated with the desired Cellpublic void store(DataOutput os) throws IOException
os - the output streamIOException - if an I/O error occurspublic int uniformCmd(boolean eqSkip)
eqSkip - when set to false the removed patch commands are
          consideredpublic void print(PrintStream out)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.