|
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
uk.ac.gla.terrier.structures.trees.BlockFieldDocumentTreeNode
public class BlockFieldDocumentTreeNode
Models the tree node used when building the direct index with block and field information.
Field Summary | |
---|---|
gnu.trove.TIntHashSet |
BlockIds
Deprecated. Hashset of blockids |
BlockFieldDocumentTreeNode |
left
Deprecated. The left child of the node. |
BlockFieldDocumentTreeNode |
right
Deprecated. The right child of the node. |
Fields inherited from class uk.ac.gla.terrier.structures.trees.TreeNode |
---|
frequency, term, termCode |
Constructor Summary | |
---|---|
BlockFieldDocumentTreeNode(java.lang.String newTerm,
int blockId)
Deprecated. Constructs a tree node for the given term and block id. |
|
BlockFieldDocumentTreeNode(java.lang.String newTerm,
int blockId,
java.util.Set<java.lang.String> fields)
Deprecated. Constructs a tree node for the given term, block id and the html tag. |
|
BlockFieldDocumentTreeNode(java.lang.String newTerm,
int blockId,
java.lang.String field)
Deprecated. Constructs a tree node for the given term, block id and the field. |
Method Summary | |
---|---|
int |
getBlockCount()
Deprecated. Returns how many separate blocks does this term occur in. |
int[] |
getBlockIds()
Deprecated. Returns an array of the blocksids stored in this object. |
boolean |
insertBlock(int blockId)
Deprecated. Adds a block to the hashset of blocks already saved for this node |
Methods inherited from class uk.ac.gla.terrier.structures.trees.FieldDocumentTreeNode |
---|
addToFieldScore, addToFieldScore, getFieldScore |
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 BlockFieldDocumentTreeNode left
public BlockFieldDocumentTreeNode right
public final gnu.trove.TIntHashSet BlockIds
Constructor Detail |
---|
public BlockFieldDocumentTreeNode(java.lang.String newTerm, int blockId)
newTerm
- the term.blockId
- the block id.public BlockFieldDocumentTreeNode(java.lang.String newTerm, int blockId, java.lang.String field)
newTerm
- the term.blockId
- the block id.field
- the field containing the term.public BlockFieldDocumentTreeNode(java.lang.String newTerm, int blockId, java.util.Set<java.lang.String> fields)
newTerm
- the term.blockId
- the block id.fields
- the fields that contain the term.Method Detail |
---|
public boolean insertBlock(int blockId)
blockId
- The id of the new block
public int[] getBlockIds()
public int getBlockCount()
|
Terrier IR Platform 1.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |