Terrier IR Platform
1.1.1

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

java.lang.Object
  extended by uk.ac.gla.terrier.structures.trees.FieldDocumentTree
      extended by uk.ac.gla.terrier.structures.trees.BlockFieldDocumentTree

Deprecated.

public class BlockFieldDocumentTree
extends FieldDocumentTree

A binary tree that is used when indexing with blocks and html information.

Version:
$Revision: 1.13 $
Author:
Douglas Johnson, Vassilis Plachouras

Nested Class Summary
 
Nested classes/interfaces inherited from class uk.ac.gla.terrier.structures.trees.FieldDocumentTree
FieldDocumentTree.FDTnodeProcedure
 
Constructor Summary
BlockFieldDocumentTree()
          Deprecated.  
 
Method Summary
 void empty()
          Deprecated. Empties the tree.
 int getNumberOfBlocks()
          Deprecated. Returns the number of blocks in the tree.
 void insert(java.lang.String newTerm, int blockId)
          Deprecated. Inserts a term with a given block id in the tree.
 void insert(java.lang.String newTerm, int blockId, java.util.Set<java.lang.String> fields)
          Deprecated. Inserts a term with a given block id, in a specified field, in the tree.
 void insert(java.lang.String newTerm, int blockId, java.lang.String field)
          Deprecated. Inserts a term with a given block id, in a specified field, in the tree.
 FieldDocumentTreeNode[] toArray()
          Deprecated. Returns an array of the term nodes of the tree.
 
Methods inherited from class uk.ac.gla.terrier.structures.trees.FieldDocumentTree
forEachNode, getNumberOfNodes, getNumberOfPointers, insert, insert, insert
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockFieldDocumentTree

public BlockFieldDocumentTree()
Deprecated. 
Method Detail

empty

public void empty()
Deprecated. 
Empties the tree.

Overrides:
empty in class FieldDocumentTree

getNumberOfBlocks

public int getNumberOfBlocks()
Deprecated. 
Returns the number of blocks in the tree.

Returns:
int the number of pointers in the tree.

insert

public void insert(java.lang.String newTerm,
                   int blockId)
Deprecated. 
Inserts a term with a given block id in the tree.

Parameters:
newTerm - the term to insert.
blockId - the block id of the term.

insert

public void insert(java.lang.String newTerm,
                   int blockId,
                   java.lang.String field)
Deprecated. 
Inserts a term with a given block id, in a specified field, in the tree.

Parameters:
newTerm - the term to insert.
blockId - the block id of the term.
field - the field the term appears in

insert

public void insert(java.lang.String newTerm,
                   int blockId,
                   java.util.Set<java.lang.String> fields)
Deprecated. 
Inserts a term with a given block id, in a specified field, in the tree.

Parameters:
newTerm - the term to insert.
blockId - the block id of the term.
fields - the fields the term appears in

toArray

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

Overrides:
toArray in class FieldDocumentTree

Terrier IR Platform
1.1.1

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