public interface FixedPartitionResolver<K,V> extends PartitionResolver<K,V>
FixedPartitionResolver
helps to
achieve explicit mapping of a "user defined" partition to a data member node.
GemFire uses the partition name returned by getPartitionName(EntryOperation, Set)
to determine on
which member the data is being managed. Say, for example, you want to
partition all Trades according to quarters. You can implement
FixedPartitionResolver to get the name of the quarter based on the date given
as part of EntryOperation
.
PartitionResolver
Modifier and Type | Method and Description |
---|---|
String |
getPartitionName(EntryOperation<K,V> opDetails,
Set<String> targetPartitions)
This method is used to get the name of the partition for the given entry
operation.
|
getName, getRoutingObject
close
String getPartitionName(EntryOperation<K,V> opDetails, @Deprecated Set<String> targetPartitions)
opDetails
- the details of the entry operation e.g. Region.get(Object)
targetPartitions
- Avoid using this parameter.This set is deprecated from 8.0 and same will be removed in future release.
Represents all the available primary partitions on the nodes.Copyright © 1997-2017 Pivotal Software, Inc. All rights reserved.