Class ValueIndex

java.lang.Object
org.basex.index.value.ValueIndex
All Implemented Interfaces:
Index
Direct Known Subclasses:
DiskValues, FTIndex, MemValues

public abstract class ValueIndex extends Object implements Index
Index for texts, attribute values and full-texts.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Field Details

    • type

      protected final IndexType type
      Index type.
    • data

      protected final Data data
      Data instance.
  • Constructor Details

    • ValueIndex

      protected ValueIndex(Data data, IndexType type)
      Constructor, initializing the index structure.
      Parameters:
      data - data reference
      type - index type
  • Method Details

    • size

      public abstract int size()
      Returns the number of index entries.
      Returns:
      number of index entries
    • delete

      public abstract void delete(ValueCache values)
      Deletes entries from the index.
      Parameters:
      values - value cache with [key, id-list] pairs
    • add

      public abstract void add(ValueCache values)
      Add entries to the index.
      Parameters:
      values - value cache with [key, id-list] pairs
    • flush

      public abstract void flush()
      Flushes the buffered data.