org.basex.index
Class FTTrie

java.lang.Object
  extended by org.basex.index.FTIndex
      extended by org.basex.index.FTTrie
All Implemented Interfaces:
Index

public final class FTTrie
extends FTIndex

This class indexes text contents in a compressed trie on disk.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen, Sebastian Gath

Method Summary
 void close()
          Closes the index.
 IndexIterator ids(IndexToken ind)
          Returns an iterator for the index results.
 byte[] info()
          Returns information on the index structure.
 int nrIDs(IndexToken ind)
          Returns the (approximate/estimated) number of ids for the specified token.
 
Methods inherited from class org.basex.index.FTIndex
get
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

info

public byte[] info()
Description copied from interface: Index
Returns information on the index structure.

Returns:
info

nrIDs

public int nrIDs(IndexToken ind)
Description copied from interface: Index
Returns the (approximate/estimated) number of ids for the specified token.

Parameters:
ind - token to be found
Returns:
number of ids

ids

public IndexIterator ids(IndexToken ind)
Description copied from interface: Index
Returns an iterator for the index results.

Parameters:
ind - token to be found
Returns:
ids

close

public void close()
           throws IOException
Description copied from interface: Index
Closes the index.

Throws:
IOException - I/O exception