Terrier IR Platform
1.1.1

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

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

Deprecated.

public class TermTree
extends java.lang.Object

This class represents the binary tree formed by a set of terms, such as the terms in a query. It uses the TermTreeNode class for representing the tree nodes

Version:
$Revision: 1.16 $
Author:
Gianni Amati, Vassilis Plachouras, Ben He

Constructor Summary
TermTree()
          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.
 TermTreeNode[] toArray()
          Deprecated. Returns an array of TermTreeNodes for the tree.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TermTree

public TermTree()
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 TermTreeNode[] toArray()
Deprecated. 
Returns an array of TermTreeNodes for the tree.

Returns:
the content of the tree as an array of TermTreeNode

Terrier IR Platform
1.1.1

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