public class MergeOperationFactory extends PartitionAwareOperationFactory
MergeOperation
.Modifier and Type | Field and Description |
---|---|
protected SplitBrainMergePolicy<Data,SplitBrainMergeTypes.MapMergeTypes> |
mergePolicy |
protected List<SplitBrainMergeTypes.MapMergeTypes>[] |
mergingEntries |
protected String |
name |
partitions
Constructor and Description |
---|
MergeOperationFactory() |
MergeOperationFactory(String name,
int[] partitions,
List<SplitBrainMergeTypes.MapMergeTypes>[] mergingEntries,
SplitBrainMergePolicy<Data,SplitBrainMergeTypes.MapMergeTypes> mergePolicy) |
Modifier and Type | Method and Description |
---|---|
Operation |
createPartitionOperation(int partitionId)
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
|
createFactoryOnRunner, createOperation
protected String name
protected List<SplitBrainMergeTypes.MapMergeTypes>[] mergingEntries
protected SplitBrainMergePolicy<Data,SplitBrainMergeTypes.MapMergeTypes> mergePolicy
public MergeOperationFactory()
public MergeOperationFactory(String name, int[] partitions, List<SplitBrainMergeTypes.MapMergeTypes>[] mergingEntries, SplitBrainMergePolicy<Data,SplitBrainMergeTypes.MapMergeTypes> mergePolicy)
public Operation createPartitionOperation(int partitionId)
PartitionAwareOperationFactory
Creates a partition-operation for supplied partition ID.
createPartitionOperation
in class PartitionAwareOperationFactory
partitionId
- ID of partitionpublic void writeData(ObjectDataOutput out) throws IOException
DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.