final HColumn<DynamicComposite, K> indexColumn = HFactory.createColumn(indexColumnName, itemKey, DYNAMIC_COMPOSITE_SERIALIZER, keySerializer);
indexMutator.addInsertion(indexName, indexColumnFamily, indexColumn);
}
private void performCleanup(K key, Mutator<String> indexMutator, Mutator<DynamicComposite> entryMutator) {
final DynamicComposite entryKey = entryKey(key);
final List<HColumn<Long, DynamicComposite>> entries = getEntries(entryKey);
for (HColumn<Long, DynamicComposite> entry : entries) {
final Long entryTimestamp = entry.getName();
DynamicComposite indexColumnName = new DynamicComposite();
appendComponents(entry.getValue(), indexColumnName);
indexColumnName.addComponent(key, keySerializer);
indexColumnName.addComponent(entryTimestamp, LONG_SERIALIZER);
indexMutator.addDeletion(indexName, indexColumnFamily, indexColumnName, DYNAMIC_COMPOSITE_SERIALIZER);
entryMutator.addDeletion(entryKey, entryColumnFamily, entryTimestamp, LONG_SERIALIZER);
}
}