use of com.hazelcast.map.impl.operation.MapOperationProvider in project hazelcast by hazelcast.
the class MapLoadGivenKeysMessageTask method createOperationFactory.
@Override
protected OperationFactory createOperationFactory() {
Data[] keys = parameters.keys.toArray(new Data[parameters.keys.size()]);
MapOperationProvider operationProvider = getOperationProvider(parameters.name);
return operationProvider.createLoadAllOperationFactory(parameters.name, Arrays.asList(keys), parameters.replaceExistingValues);
}
use of com.hazelcast.map.impl.operation.MapOperationProvider in project hazelcast by hazelcast.
the class MapPutAllMessageTask method prepareOperation.
@Override
protected Operation prepareOperation() {
MapEntries mapEntries = new MapEntries(parameters.entries);
MapOperationProvider operationProvider = getMapOperationProvider(parameters.name);
return operationProvider.createPutAllOperation(parameters.name, mapEntries);
}
use of com.hazelcast.map.impl.operation.MapOperationProvider in project hazelcast by hazelcast.
the class MapRemoveAllMessageTask method createOperationFactory.
@Override
protected OperationFactory createOperationFactory() {
MapOperationProvider operationProvider = getOperationProvider(parameters.name);
Predicate predicate = serializationService.toObject(parameters.predicate);
return operationProvider.createPartitionWideEntryWithPredicateOperationFactory(parameters.name, ENTRY_REMOVING_PROCESSOR, predicate);
}
use of com.hazelcast.map.impl.operation.MapOperationProvider in project hazelcast by hazelcast.
the class MapReplaceIfSameMessageTask method prepareOperation.
@Override
protected Operation prepareOperation() {
MapOperationProvider operationProvider = getMapOperationProvider(parameters.name);
MapOperation op = operationProvider.createReplaceIfSameOperation(parameters.name, parameters.key, parameters.testValue, parameters.value);
op.setThreadId(parameters.threadId);
return op;
}
use of com.hazelcast.map.impl.operation.MapOperationProvider in project hazelcast by hazelcast.
the class MapReplaceMessageTask method prepareOperation.
@Override
protected Operation prepareOperation() {
MapOperationProvider operationProvider = getMapOperationProvider(parameters.name);
MapOperation op = operationProvider.createReplaceOperation(parameters.name, parameters.key, parameters.value);
op.setThreadId(parameters.threadId);
return op;
}
Aggregations