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;
}
Aggregations