public class MultiTrie2 extends MultiTrie
| Constructor and Description |
|---|
MultiTrie2(boolean forward)
Constructor for the MultiTrie2 object
|
MultiTrie2(DataInput is)
Constructor for the MultiTrie object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String key,
String cmd)
Add an element to this structure consisting of the given key and
patch command.
|
String[] |
decompose(String cmd)
Break the given patch command into its constituent pieces.
|
String |
getFully(String key)
Return the element that is stored in a cell associated with the
given key.
|
String |
getLastOnPath(String key)
Return the element that is stored as last on a path belonging to
the given key.
|
Trie |
reduce(Reduce by)
Remove empty rows from the given Trie and return the newly reduced
Trie.
|
void |
store(DataOutput os)
Write this data structure to the given output stream.
|
getAll, getCells, getCellsPnt, getCellsVal, mainpublic MultiTrie2(DataInput is) throws IOException
is - the input streamIOExceptionpublic MultiTrie2(boolean forward)
forward - set to true if the elements should be read
left to rightpublic String getFully(String key)
public String getLastOnPath(String key)
getLastOnPath in class MultiTriekey - the key associated with the desired elementpublic void store(DataOutput os) throws IOException
store in class MultiTrieos - the output streamIOExceptionpublic void add(String key, String cmd)
public String[] decompose(String cmd)
cmd - the patch commandCopyright © 2016 Egothor. All Rights Reserved.