|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.nls.lvg.Trie.PersistentTreeNode
gov.nih.nlm.nls.lvg.Trie.PersistentTrieNode
public class PersistentTrieNode
This class creates an object of persistent trie node.
History:
| Constructor Summary | |
|---|---|
PersistentTrieNode(char key,
long ruleAddress)
Create an object of persistent tree node, using key (a character from suffix) and the address of a rule. |
|
PersistentTrieNode(int level,
long parent,
long next,
long child,
long address)
Create an object of persistent trie node, using an address, next address, parent address, child address in a random access file and level at the persistent tree. |
|
PersistentTrieNode(long address)
Create an object of persistent trie node, using an address in a random access file. |
|
| Method Summary | |
|---|---|
char |
GetKey()
Get the key of current trie node. |
static PersistentTreeNode |
GetNode(java.io.RandomAccessFile raf,
long address)
Get the current persistent trie node from a specified binary file at a specified address. |
long |
GetRuleAddress()
Get the rule address of current trie node. |
static int |
PrintNode(java.io.RandomAccessFile trieRaf,
long address,
java.lang.String rulePath,
java.lang.String exceptionPath)
Print all sub tree (list) for a persistent trie node at a specific address of a specific binary file. |
void |
ReadData(java.io.RandomAccessFile raf)
Read data from the random access file. |
void |
WriteData(java.io.RandomAccessFile raf)
Write data to the random access file. |
| Methods inherited from class gov.nih.nlm.nls.lvg.Trie.PersistentTreeNode |
|---|
GetAddress, GetChild, GetLevel, GetNext, GetParent, PrintNode, SetAddress, SetChild, SetLevel, SetNext, SetParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistentTrieNode(long address)
public PersistentTrieNode(char key,
long ruleAddress)
public PersistentTrieNode(int level,
long parent,
long next,
long child,
long address)
| Method Detail |
|---|
public char GetKey()
public long GetRuleAddress()
public void WriteData(java.io.RandomAccessFile raf)
throws java.io.IOException
WriteData in class PersistentTreeNoderaf - the random access file that data will be written to
java.io.IOException - if problems happen when accessing the random
access file.
public void ReadData(java.io.RandomAccessFile raf)
throws java.io.IOException
ReadData in class PersistentTreeNoderaf - the random access file that data will be read from
java.io.IOException - if problems happen when accessing the random
access file.
public static PersistentTreeNode GetNode(java.io.RandomAccessFile raf,
long address)
throws java.io.IOException
raf - the binary file that the persistent node will be retrieved
fromaddress - the address in the binary file that the persistent
node will be retrieved from
java.io.IOException - if problems happen when accessing the random
access file.
public static int PrintNode(java.io.RandomAccessFile trieRaf,
long address,
java.lang.String rulePath,
java.lang.String exceptionPath)
throws java.io.IOException
trieRaf - the binary file that the persistent trie node will be
printed outaddress - the address in the binary file that the persistent
trie node will be printed outrulePath - the path/name of the LVG persistent ruleexceptionPath - the path/name of the LVG persistent exception
java.io.IOException - if problems happen when accessing the random
access file.
|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||