Class 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-24, BSD License, Christian Gruen
    • Field Detail

      • type

        protected final IndexType type
        Index type.
      • data

        protected final Data data
        Data instance.
    • Constructor Detail

      • ValueIndex

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

      • 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.