Search in sources :

Example 6 with PageIndex

use of org.h2.index.PageIndex in project h2database by h2database.

the class PageStore method removeOldTempIndexes.

private void removeOldTempIndexes() {
    if (tempObjects != null) {
        metaObjects.putAll(tempObjects);
        for (PageIndex index : tempObjects.values()) {
            if (index.getTable().isTemporary()) {
                index.truncate(pageStoreSession);
                index.remove(pageStoreSession);
            }
        }
        pageStoreSession.commit(true);
        tempObjects = null;
    }
    metaObjects.clear();
    metaObjects.put(-1, metaIndex);
}
Also used : PageIndex(org.h2.index.PageIndex)

Aggregations

PageIndex (org.h2.index.PageIndex)5 PageDataIndex (org.h2.index.PageDataIndex)4 PageBtreeIndex (org.h2.index.PageBtreeIndex)3 PageDelegateIndex (org.h2.index.PageDelegateIndex)3 CreateTableData (org.h2.command.ddl.CreateTableData)2 IndexColumn (org.h2.table.IndexColumn)2 RegularTable (org.h2.table.RegularTable)2 CompareMode (org.h2.value.CompareMode)2 ValueString (org.h2.value.ValueString)2 Index (org.h2.index.Index)1 IndexType (org.h2.index.IndexType)1 MultiVersionIndex (org.h2.index.MultiVersionIndex)1 Row (org.h2.result.Row)1 Column (org.h2.table.Column)1 Table (org.h2.table.Table)1 StatementBuilder (org.h2.util.StatementBuilder)1