|
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.TreeNode
uk.ac.gla.terrier.structures.trees.FieldDocumentTreeNode
public class FieldDocumentTreeNode
The tree node used by the class FieldDocumentTree, when building the direct file with field information.
FieldDocumentTree
Field Summary | |
---|---|
FieldDocumentTreeNode |
left
Deprecated. The left child of the node. |
FieldDocumentTreeNode |
right
Deprecated. The right child of the node. |
Fields inherited from class uk.ac.gla.terrier.structures.trees.TreeNode |
---|
frequency, term, termCode |
Constructor Summary | |
---|---|
FieldDocumentTreeNode(java.lang.String newTerm)
Deprecated. Constructs a tree node for the given term. |
|
FieldDocumentTreeNode(java.lang.String newTerm,
int givenTermCode)
Deprecated. Constructs a tree node for the given term, if the term code is already known. |
|
FieldDocumentTreeNode(java.lang.String newTerm,
java.util.Set<java.lang.String> fields)
Deprecated. Constructs a tree node for the given term that appears within the given fields. |
|
FieldDocumentTreeNode(java.lang.String newTerm,
java.lang.String field)
Deprecated. Constructs a tree node for the given term that appears within a field. |
Method Summary | |
---|---|
void |
addToFieldScore(java.util.Set<java.lang.String> fields)
Deprecated. Adds the fields to the field score of the tree node. |
void |
addToFieldScore(java.lang.String field)
Deprecated. Adds the field to the field score of the tree node. |
int |
getFieldScore()
Deprecated. Gets the field score of the tree node. |
Methods inherited from class uk.ac.gla.terrier.structures.trees.TreeNode |
---|
compareTo, equals |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public FieldDocumentTreeNode left
public FieldDocumentTreeNode right
Constructor Detail |
---|
public FieldDocumentTreeNode(java.lang.String newTerm)
newTerm
- the termpublic FieldDocumentTreeNode(java.lang.String newTerm, int givenTermCode)
newTerm
- the termgivenTermCode
- the term code to use if it is already knownpublic FieldDocumentTreeNode(java.lang.String newTerm, java.lang.String field)
newTerm
- the termfield
- the field containing this termpublic FieldDocumentTreeNode(java.lang.String newTerm, java.util.Set<java.lang.String> fields)
fields
- HashSet the fields in which the term appearsMethod Detail |
---|
public void addToFieldScore(java.lang.String field)
field
- String the field to add to the field scorepublic void addToFieldScore(java.util.Set<java.lang.String> fields)
fields
- HashSet the fields to add to the field scorepublic int getFieldScore()
|
Terrier IR Platform 1.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |