org.basex.index
Class MemValues

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

public final class MemValues
extends Index

This class provides a main-memory access to attribute values and text contents.

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

Constructor Summary
MemValues()
           
 
Method Summary
 IndexIterator ids(IndexToken ind)
          Returns an iterator for the index results.
 int index(byte[] key, int id)
          Indexes the specified keys and values.
 byte[] info()
          Returns information on the index structure.
 int nrIDs(IndexToken ind)
          Returns the (approximate/estimated) number of ids for the specified token.
 byte[] token(int id)
          Returns the token for the specified id.
 
Methods inherited from class org.basex.index.Index
close
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemValues

public MemValues()
Method Detail

index

public int index(byte[] key,
                 int id)
Indexes the specified keys and values.

Parameters:
key - key
id - id value
Returns:
index position

token

public byte[] token(int id)
Returns the token for the specified id.

Parameters:
id - id
Returns:
token

ids

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

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

nrIDs

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

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

info

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

Specified by:
info in class Index
Returns:
info