Search in sources :

Example 1 with CachedObject

use of org.hsqldb_voltpatches.persist.CachedObject in project voltdb by VoltDB.

the class Table method getIndexRootsArray.

/**
     *  Return the list of file pointers to root nodes for this table's
     *  indexes.
     */
public final int[] getIndexRootsArray() {
    PersistentStore store = database.persistentStoreCollection.getStore(this);
    int[] roots = new int[getIndexCount()];
    for (int i = 0; i < getIndexCount(); i++) {
        CachedObject accessor = store.getAccessor(indexList[i]);
        roots[i] = accessor == null ? -1 : accessor.getPos();
    }
    return roots;
}
Also used : CachedObject(org.hsqldb_voltpatches.persist.CachedObject) PersistentStore(org.hsqldb_voltpatches.persist.PersistentStore)

Aggregations

CachedObject (org.hsqldb_voltpatches.persist.CachedObject)1 PersistentStore (org.hsqldb_voltpatches.persist.PersistentStore)1