Terrier IR Platform
1.1.1

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

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

Deprecated.

public class DocumentTree
extends java.lang.Object

This class represents the binary tree formed by the terms in a document.

Version:
$Revision: 1.18 $
Author:
Gianni Amati, Vassilis Plachouras

Constructor Summary
DocumentTree()
          Deprecated.  
 
Method Summary
 void empty()
          Deprecated. Empties the tree.
 int getNumberOfNodes()
          Deprecated. Returns the number of nodes in the tree.
 int getNumberOfPointers()
          Deprecated. Returns the number of pointers in the tree.
 void insert(java.lang.String newTerm)
          Deprecated. Inserts a new term in the lexicon binary tree.
 TreeNode[] 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

DocumentTree

public DocumentTree()
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 void insert(java.lang.String newTerm)
Deprecated. 
Inserts a new term in the lexicon binary tree.

Parameters:
newTerm - The term to be inserted.

toArray

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

Returns:
the contents of the tree as a TreeNode array.

Terrier IR Platform
1.1.1

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