@Override
public void removeStatistics(Session session, Index index) {
RowDef indexRowDef = index.leafMostTable().rowDef();
RowDef indexStatisticsRowDef = getIndexStatsRowDef(session);
Key hKey = getStore().createKey();
hKey.append(indexStatisticsRowDef.table().getOrdinal())
.append((long) indexRowDef.getRowDefId())
.append((long) index.getIndexId());
FDBStoreData storeData = getStore().createStoreData(session, indexStatisticsRowDef.getGroup());
hKey.copyTo(storeData.persistitKey);
getStore().groupKeyAndDescendantsIterator(session, storeData, false);
while(storeData.next()) {
RowData rowData = new RowData();
FDBStoreDataHelper.expandRowData(rowData, storeData, false);
getStore().deleteRow(session, rowData, false); // TODO: Use cascade?