org.basex.index.value
Class UpdatableMemValues

java.lang.Object
  extended by org.basex.util.hash.ASet
      extended by org.basex.util.hash.TokenSet
          extended by org.basex.index.value.MemValues
              extended by org.basex.index.value.UpdatableMemValues
All Implemented Interfaces:
java.lang.Iterable<byte[]>, Index

public final class UpdatableMemValues
extends MemValues

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

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.util.hash.TokenSet
keys
 
Fields inherited from class org.basex.util.hash.ASet
bucket, next, size
 
Constructor Summary
UpdatableMemValues(MemData d)
          Constructor.
 
Method Summary
 void delete(byte[] key, int id)
          Removes a record from the index.
 byte[] info()
          Returns information on the index structure.
 IndexIterator iter(IndexToken tok)
          Returns an iterator for the index results.
 
Methods inherited from class org.basex.index.value.MemValues
close, count, entries, init, put, rehash
 
Methods inherited from class org.basex.util.hash.TokenSet
add, add, clear, contains, delete, hash, id, iterator, key, put, read, toString, write
 
Methods inherited from class org.basex.util.hash.ASet
checkSize, isEmpty, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdatableMemValues

public UpdatableMemValues(MemData d)
Constructor.

Parameters:
d - data instance
Method Detail

iter

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

Specified by:
iter in interface Index
Overrides:
iter in class MemValues
Parameters:
tok - token to be found
Returns:
sorted pre values for the token

info

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

Specified by:
info in interface Index
Overrides:
info in class MemValues
Returns:
info

delete

public void delete(byte[] key,
                   int id)
Description copied from class: MemValues
Removes a record from the index.

Overrides:
delete in class MemValues
Parameters:
key - record key
id - record id