All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.h2.mvstore.db.MVIndex Maven / Gradle / Ivy

/*
 * Copyright 2004-2013 H2 Group. Multiple-Licensed under the H2 License,
 * Version 1.0, and under the Eclipse Public License, Version 1.0
 * (http://h2database.com/html/license.html).
 * Initial Developer: H2 Group
 */
package org.h2.mvstore.db;

import java.util.List;

import org.h2.index.Index;
import org.h2.result.Row;

/**
 * An index that stores the data in an MVStore.
 */
public interface MVIndex extends Index {

    /**
     * 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.
     *
     * @param rows the rows
     * @param bufferName the name of the temporary storage
     */
    void addRowsToBuffer(List rows, String bufferName);

    /**
     * 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.
     *
     * @param bufferNames the names of the temporary storage
     */
    void addBufferedRows(List bufferNames);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy