Class MVIndex<K,V>

All Implemented Interfaces:
HasSQL
Direct Known Subclasses:
MVDelegateIndex, MVPrimaryIndex, MVSecondaryIndex, MVSpatialIndex

public abstract class MVIndex<K,V> extends Index
An index that stores the data in an MVStore.
  • Constructor Details

  • Method Details

    • addRowsToBuffer

      public abstract void addRowsToBuffer(List<Row> rows, String bufferName)
      Add the rows to a temporary storage (not to the index yet). The rows are sorted by the index columns. This is to more quickly build the index.
      Parameters:
      rows - the rows
      bufferName - the name of the temporary storage
    • addBufferedRows

      public abstract void addBufferedRows(List<String> bufferNames)
      Add all the index data from the buffers to the index. The index will typically use merge sort to add the data more quickly in sorted order.
      Parameters:
      bufferNames - the names of the temporary storage
    • getMVMap

      public abstract MVMap<K,VersionedValue<V>> getMVMap()