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 |
createOperation()
Creates the operation.
|
Operation |
createPartitionOperation(int partition)
This method can be called both caller and runner nodes.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
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
If 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
Creates a partition-operation for supplied partition ID.
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
public Operation createOperation()
OperationFactory
createOperation
in interface OperationFactory
createOperation
in class PartitionAwareOperationFactory
public int getFactoryId()
IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.