Terrier IR Platform
1.1.1

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

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

Deprecated.

public class BlockLexiconTree
extends java.lang.Object

The binary tree used when constructing the lexicon with block information. The tree nodes are instances of BlockLexiconTreeNode.

Version:
$Revision: 1.20 $
Author:
Douglas Johnson, Craig Macdonald

Constructor Summary
BlockLexiconTree()
          Deprecated.  
 
Method Summary
 int getNumberOfNodes()
          Deprecated. Returns the number of nodes in the tree.
 int getNumberOfPointers()
          Deprecated. Returns the number of pointers in the tree.
 void insert(BlockFieldDocumentTreeNode node)
          Deprecated. Inserts a new ndoe in the block lexicon binary tree.
 void insertBuffer(BlockFieldDocumentTreeNode[] buffer)
          Deprecated. Inserts to the tree the terms contained in the buffer.
 void storeToFile(java.lang.String filename)
          Deprecated. Stores the lexicon tree to a file as a vector of entries.
 void storeToStream(BlockLexiconOutputStream 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

BlockLexiconTree

public BlockLexiconTree()
Deprecated. 
Method Detail

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(BlockFieldDocumentTreeNode node)
Deprecated. 
Inserts a new ndoe in the block lexicon binary tree.

Parameters:
node - The node to be inserted.

insertBuffer

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

Parameters:
buffer - a matrix of TreeNodes

storeToFile

public void storeToFile(java.lang.String filename)
                 throws java.io.IOException
Deprecated. 
Stores the lexicon tree to a file as a vector of entries.

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

storeToStream

public void storeToStream(BlockLexiconOutputStream 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