Class ValueCache

java.lang.Object
org.basex.index.value.ValueCache
All Implemented Interfaces:
Iterable<byte[]>

public final class ValueCache extends Object implements Iterable<byte[]>
Caches values and ids for update operations.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • ValueCache

      public ValueCache(int pre, IndexType type, Data data)
      Caches the text and id for a node with specified pre value.
      Parameters:
      pre - pre value
      type - index type
      data - data reference
    • ValueCache

      public ValueCache(int pre, int size, IndexType type, Data data)
      Caches all texts and ids in the specified database range.
      Parameters:
      pre - pre value
      size - size value
      type - index type
      data - data reference
    • ValueCache

      public ValueCache(IntList pres, IndexType type, Data data)
      Caches texts of the specified pre values.
      Parameters:
      pres - pre values
      type - index type
      data - data reference
  • Method Details

    • iterator

      public Iterator<byte[]> iterator()
      Returns an iterator with all keys in sorted order.
      Specified by:
      iterator in interface Iterable<byte[]>
      Returns:
      keys iterator