|
Terrier IR Platform 1.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.gla.terrier.structures.trees.LexiconTree
public class LexiconTree
This class represents the binary tree formed by the terms in the lexicon.
Constructor Summary | |
---|---|
LexiconTree()
Deprecated. |
Method Summary | |
---|---|
int |
getNumberOfNodes()
Deprecated. Returns the numbe of nodes in the tree. |
int |
getNumberOfPointers()
Deprecated. Returns the number of pointers in the tree. |
TreeNode |
insert(java.lang.String newTerm)
Deprecated. Inserts a new term in the lexicon binary tree. |
void |
insertBuffer(TreeNode[] buffer)
Deprecated. Inserts to the tree the terms contained in the buffer. |
void |
storeToFile(java.lang.String filename)
Deprecated. Use the lexiconoutputstream method |
void |
storeToStream(LexiconOutputStream lexiconStream)
Deprecated. Stores the lexicon tree to a lexicon stream as a sequence of entries. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LexiconTree()
Method Detail |
---|
public int getNumberOfNodes()
public int getNumberOfPointers()
public TreeNode insert(java.lang.String newTerm)
newTerm
- The term to be inserted.public void insertBuffer(TreeNode[] buffer)
buffer
- an array of TreeNodespublic void storeToFile(java.lang.String filename) throws java.io.IOException
filename
- The name of the file to store to.
java.io.IOException
public void storeToStream(LexiconOutputStream lexiconStream) throws java.io.IOException
lexiconStream
- The lexicon output stream to store to.
java.io.IOException
|
Terrier IR Platform 1.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |