Terrier IR Platform
1.1.1

uk.ac.gla.terrier.structures.trees
Class FieldDocumentTree

java.lang.Object
  extended by uk.ac.gla.terrier.structures.trees.FieldDocumentTree
Direct Known Subclasses:
BlockFieldDocumentTree

Deprecated.

public class FieldDocumentTree
extends java.lang.Object

The binary tree used when we build the direct index with field information. One FieldDocumentTree represents the terms in one document.

Version:
$Revision: 1.15 $
Author:
Douglas Johnson, Craig Macdonald
See Also:
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

FieldDocumentTree

public FieldDocumentTree()
Deprecated. 
Method Detail

empty

public void empty()
Deprecated. 
Empties the tree.


getNumberOfNodes

public int getNumberOfNodes()
Deprecated. 
Returns the number of nodes in the tree.

Returns:
int the number of nodes in the tree.

getNumberOfPointers

public int getNumberOfPointers()
Deprecated. 
Returns the number of pointers in the tree.

Returns:
int the number of pointers in the tree.

insert

public FieldDocumentTreeNode insert(java.lang.String newTerm)
Deprecated. 
Inserts a new term in the field document binary tree.

Parameters:
newTerm - The term to be inserted.

insert

public 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.

Parameters:
newTerm - String the term to be inserted.
field - String the field in which the term appears.

insert

public 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.

Parameters:
newTerm - String the term to be inserted.
fields - HashSet the fields in which the term appears.

forEachNode

public void forEachNode(FieldDocumentTree.FDTnodeProcedure proc)
Deprecated. 
Applies a input procedure to each node of the tree recursively. The traversal is preorder.

Parameters:
proc -

toArray

public FieldDocumentTreeNode[] toArray()
Deprecated. 
Returns an array of the term nodes of the tree.


Terrier IR Platform
1.1.1

Terrier Information Retrieval Platform 1.1.1. Copyright 2004-2007 University of Glasgow