public class PartitionWideEntryWithPredicateOperationFactory extends PartitionAwareOperationFactory
partitions
Constructor and Description |
---|
PartitionWideEntryWithPredicateOperationFactory() |
PartitionWideEntryWithPredicateOperationFactory(String name,
EntryProcessor entryProcessor,
Predicate predicate) |
PartitionWideEntryWithPredicateOperationFactory(String name,
EntryProcessor entryProcessor,
Predicate predicate,
Map<Integer,List<Data>> partitionIdToKeysMap) |
Modifier and Type | Method and Description |
---|---|
PartitionAwareOperationFactory |
createFactoryOnRunner(NodeEngine nodeEngine)
This method will be called on operation runner node.
|
Operation |
createPartitionOperation(int partition)
This method can be called both caller and runner nodes.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
createOperation, getPartitions
public PartitionWideEntryWithPredicateOperationFactory()
public PartitionWideEntryWithPredicateOperationFactory(String name, EntryProcessor entryProcessor, Predicate predicate, Map<Integer,List<Data>> partitionIdToKeysMap)
public PartitionWideEntryWithPredicateOperationFactory(String name, EntryProcessor entryProcessor, Predicate predicate)
public PartitionAwareOperationFactory createFactoryOnRunner(NodeEngine nodeEngine)
PartitionAwareOperationFactory
PartitionAwareOperationFactory
needs to have runner-side state different from caller-side one,
this method can be used to create it. Otherwise, stateful factories may cause JMM problems.createFactoryOnRunner
in class PartitionAwareOperationFactory
nodeEngine
- nodeEnginepublic Operation createPartitionOperation(int partition)
PartitionAwareOperationFactory
createPartitionOperation
in class PartitionAwareOperationFactory
partition
- id of partitionpublic void writeData(ObjectDataOutput out) throws IOException
DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
in
- inputIOException
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.