if (cache != null) {
tableSpace = cache.spaceManager.getTableSpace(
DataSpaceManager.tableIdDefault);
IndexAVL idx = (IndexAVL) indexList[0];
NodeAVL root = (NodeAVL) accessorList[0];
RowIterator iterator = table.rowIterator(this);
ArrayUtil.fillArray(accessorList, null);
elementCount.set(0);
isCached = true;
cache.adjustStoreCount(1);
while (iterator.hasNext()) {
Row row = iterator.getNextRow();
Row newRow = (Row) getNewCachedObject(session, row.getData(),
false);
indexRow(session, newRow);
}
idx.unlinkNodes(root);
}
maxMemoryRowCount = Integer.MAX_VALUE;
}