final ManagedContext managedContext = getNodeEngine().getSerializationService().getManagedContext();
managedContext.initialize(entryProcessor);
}
public void run() {
final MapServiceContext mapServiceContext = getMapServiceContext();
response = new MapEntrySet();
MapEntrySimple entry;
final RecordStore recordStore = mapServiceContext.getRecordStore(getPartitionId(), name);
final LocalMapStatsImpl mapStats
= mapServiceContext.getLocalMapStatsProvider().getLocalMapStatsImpl(name);
final Iterator<Record> iterator = recordStore.iterator();
while (iterator.hasNext()) {
final Record record = iterator.next();
final long start = Clock.currentTimeMillis();
final Data key = record.getKey();
final Object valueBeforeProcess = record.getValue();
final Object valueBeforeProcessObject = mapServiceContext.toObject(valueBeforeProcess);
Object objectKey = mapServiceContext.toObject(key);
if (getPredicate() != null) {
final SerializationService ss = getNodeEngine().getSerializationService();
QueryEntry queryEntry = new QueryEntry(ss, key, objectKey, valueBeforeProcessObject);
if (!getPredicate().apply(queryEntry)) {
continue;
}
}
entry = new MapEntrySimple(objectKey, valueBeforeProcessObject);
final Object result = entryProcessor.process(entry);
final Object valueAfterProcess = entry.getValue();
Data dataValue = null;
if (result != null) {
dataValue = mapServiceContext.toData(result);
response.add(new AbstractMap.SimpleImmutableEntry<Data, Data>(key, dataValue));
}
EntryEventType eventType;
if (valueAfterProcess == null) {