Terrier IR Platform
1.1.1

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

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

Deprecated.

public class LexiconTree
extends java.lang.Object

This class represents the binary tree formed by the terms in the lexicon.

Version:
$Revision: 1.26 $
Author:
Gianni Amati, Vassilis Plachouras, Craig Macdonald

Constructor Summary
LexiconTree()
          Deprecated.  
 
Method Summary
 int getNumberOfNodes()
          Deprecated. Returns the numbe of nodes in the tree.
 int getNumberOfPointers()
          Deprecated. Returns the number of pointers in the tree.
 TreeNode insert(java.lang.String newTerm)
          Deprecated. Inserts a new term in the lexicon binary tree.
 void insertBuffer(TreeNode[] buffer)
          Deprecated. Inserts to the tree the terms contained in the buffer.
 void storeToFile(java.lang.String filename)
          Deprecated. Use the lexiconoutputstream method
 void storeToStream(LexiconOutputStream lexiconStream)
          Deprecated. Stores the lexicon tree to a lexicon stream as a sequence of entries.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LexiconTree

public LexiconTree()
Deprecated. 
Method Detail

getNumberOfNodes

public int getNumberOfNodes()
Deprecated. 
Returns the numbe 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 TreeNode insert(java.lang.String newTerm)
Deprecated. 
Inserts a new term in the lexicon binary tree.

Parameters:
newTerm - The term to be inserted.

insertBuffer

public void insertBuffer(TreeNode[] buffer)
Deprecated. 
Inserts to the tree the terms contained in the buffer.

Parameters:
buffer - an array of TreeNodes

storeToFile

public void storeToFile(java.lang.String filename)
                 throws java.io.IOException
Deprecated. Use the lexiconoutputstream method

Stores the lexicon tree to a file as sequence of entries. The binary tree is traversed in order, by calling the method traverseAndStoreToBuffer.

Parameters:
filename - The name of the file to store to.
Throws:
java.io.IOException

storeToStream

public void storeToStream(LexiconOutputStream lexiconStream)
                   throws java.io.IOException
Deprecated. 
Stores the lexicon tree to a lexicon stream as a sequence of entries. The binary tree is traversed in order, by called the method traverseAndStoreToStream.

Parameters:
lexiconStream - The lexicon output stream to store to.
Throws:
java.io.IOException

Terrier IR Platform
1.1.1

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