Class MVIndex<K,​V>

    • Constructor Detail

      • MVIndex

        protected MVIndex​(Table newTable,
                          int id,
                          java.lang.String name,
                          IndexColumn[] newIndexColumns,
                          int uniqueColumnCount,
                          IndexType newIndexType)
    • Method Detail

      • addRowsToBuffer

        public abstract void addRowsToBuffer​(java.util.List<Row> rows,
                                             java.lang.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​(java.util.List<java.lang.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
      • getDiskSpaceUsed

        public long getDiskSpaceUsed​(boolean approximate)
        Description copied from class: Index
        Get the used disk space for this index.
        Overrides:
        getDiskSpaceUsed in class Index
        Parameters:
        approximate - true to return quick approximation
        Returns:
        the estimated number of bytes