public void run() throws Exception {
MapService mapService = getService();
MapContainer mapContainer = mapService.getMapServiceContext().getMapContainer(name);
RecordStore recordStore = mapService.getMapServiceContext()
.getPartitionContainer(getPartitionId()).getRecordStore(name);
IndexService indexService = mapContainer.getIndexService();
SerializationService ss = getNodeEngine().getSerializationService();
Index index = indexService.addOrGetIndex(attributeName, ordered);
final long now = getNow();
final Iterator<Record> iterator = recordStore.iterator(now, false);
while (iterator.hasNext()) {
final Record record = iterator.next();
Data key = record.getKey();