org.basex.index
Class Values

java.lang.Object
  extended by org.basex.index.Index
      extended by org.basex.index.Values

public final class Values
extends Index

This class provides access to attribute values and text contents stored on disk.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Constructor Summary
Values(Data d, java.lang.String db, boolean txt)
          Constructor, initializing the index structure.
 
Method Summary
 void close()
          Close the index.
 IndexIterator ids(IndexToken tok)
          Returns an iterator for the index results.
 byte[] info()
          Returns information on the index structure.
 int nrIDs(IndexToken tok)
          Returns the (approximate/estimated) number of ids for the specified token.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Values

public Values(Data d,
              java.lang.String db,
              boolean txt)
       throws java.io.IOException
Constructor, initializing the index structure.

Parameters:
d - data reference
db - name of the database
txt - value type (texts/attributes)
Throws:
java.io.IOException - IO Exception
Method Detail

info

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

Specified by:
info in class Index
Returns:
info

ids

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

Specified by:
ids in class Index
Parameters:
tok - token to be found
Returns:
ids

nrIDs

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

Specified by:
nrIDs in class Index
Parameters:
tok - token to be found
Returns:
number of ids

close

public void close()
           throws java.io.IOException
Description copied from class: Index
Close the index.

Overrides:
close in class Index
Throws:
java.io.IOException - in case of write errors