decodeIndexStatisticsEntryRow(rowData, indexStatisticsEntryRowDef, indexStatistics);
}
private void removeStatisticsInternal(Session session, Index index, Exchange exchange) throws PersistitException {
RowData rowData = new RowData(new byte[INITIAL_ROW_SIZE]);
RowDef indexStatisticsRowDef = getIndexStatsRowDef(session);
RowDef indexStatisticsEntryRowDef = getIndexStatsEntryRowDef(session);
int tableId = index.leafMostTable().rowDef().getRowDefId();
int indexId = index.getIndexId();
// Delete index_statistics_entry rows.
exchange.append(Key.BEFORE);
while (exchange.traverse(Key.Direction.GT, true)) {
getStore().expandRowData(session, exchange, rowData);
if (rowData.getRowDefId() == indexStatisticsEntryRowDef.getRowDefId() &&
selectedIndex(indexStatisticsEntryRowDef, rowData, tableId, indexId)) {
getStore().deleteRow(session, rowData, false);
}
}