public class Row
extends java.lang.Object
Constructor and Description |
---|
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.
|
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(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(java.io.PrintStream out)
Write the contents of this Row to the printstream.
|
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.
|
public Row(java.io.DataInput is) throws java.io.IOException
is
- the input streamjava.io.IOException
- if an I/O error occurspublic Row()
public Row(Row old)
old
- the Row to copypublic 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
commandpublic int getCnt(java.lang.Character way)
way
- the Character associated with the desired Cellpublic int getRef(java.lang.Character way)
way
- the Character associated with the desired Cellpublic void store(java.io.DataOutput os) throws java.io.IOException
os
- the output streamjava.io.IOException
- if an I/O error occurspublic int uniformCmd(boolean eqSkip)
eqSkip
- when set to false the removed patch commands are
consideredpublic void print(java.io.PrintStream out)
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.