|
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.FieldDocumentTree
public class FieldDocumentTree
The binary tree used when we build the direct index with field information. One FieldDocumentTree represents the terms in one document.
FieldDocumentTreeNode| Nested Class Summary | |
|---|---|
static interface |
FieldDocumentTree.FDTnodeProcedure
Deprecated. |
| Constructor Summary | |
|---|---|
FieldDocumentTree()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
empty()
Deprecated. Empties the tree. |
void |
forEachNode(FieldDocumentTree.FDTnodeProcedure proc)
Deprecated. Applies a input procedure to each node of the tree recursively. |
int |
getNumberOfNodes()
Deprecated. Returns the number of nodes in the tree. |
int |
getNumberOfPointers()
Deprecated. Returns the number of pointers in the tree. |
FieldDocumentTreeNode |
insert(java.lang.String newTerm)
Deprecated. Inserts a new term in the field document binary tree. |
FieldDocumentTreeNode |
insert(java.lang.String newTerm,
java.util.Set<java.lang.String> fields)
Deprecated. Inserts a new term in the field document binary tree, adding fields to the field score. |
FieldDocumentTreeNode |
insert(java.lang.String newTerm,
java.lang.String field)
Deprecated. Inserts a new term in the field document binary tree, adding field to the field score. |
FieldDocumentTreeNode[] |
toArray()
Deprecated. Returns an array of the term nodes of the tree. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldDocumentTree()
| Method Detail |
|---|
public void empty()
public int getNumberOfNodes()
public int getNumberOfPointers()
public FieldDocumentTreeNode insert(java.lang.String newTerm)
newTerm - The term to be inserted.
public FieldDocumentTreeNode insert(java.lang.String newTerm,
java.lang.String field)
newTerm - String the term to be inserted.field - String the field in which the term appears.
public FieldDocumentTreeNode insert(java.lang.String newTerm,
java.util.Set<java.lang.String> fields)
newTerm - String the term to be inserted.fields - HashSet the fields in which the term appears.public void forEachNode(FieldDocumentTree.FDTnodeProcedure proc)
proc - public FieldDocumentTreeNode[] toArray()
|
Terrier IR Platform 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||