VMware VMware GemFire Native C++ Reference 10.4.3
|
Implement the PartitionResolver
interface to enable custom partitioning on the PartitionedRegion
.
More...
#include <PartitionResolver.hpp>
Inherited by apache::geode::client::FixedPartitionResolver, and apache::geode::client::StringPrefixPartitionResolver.
Public Member Functions | |
virtual const std::string & | getName () |
Returns the name of the PartitionResolver. | |
virtual std::shared_ptr< CacheableKey > | getRoutingObject (const EntryEvent &opDetails)=0 |
virtual | ~PartitionResolver () |
public methods | |
Protected Member Functions | |
PartitionResolver () | |
constructors | |
Implement the PartitionResolver
interface to enable custom partitioning on the PartitionedRegion
.
The Key class or callback arg can implement the PartitionResolver interface to enable custom partitioning, or you can configure your own PartitionResolver class in partition attributes (for instance when the Key is a primitive type or String):
In the example above, all trade entries with the same month and year are guaranteed to be colocated.
|
virtual |
public methods
destructor
|
protected |
constructors
|
virtual |
Returns the name of the PartitionResolver.
Reimplemented in apache::geode::client::StringPrefixPartitionResolver.
|
pure virtual |
opDetails | the detail of the entry event |
RuntimeException | - any exception thrown will terminate the operation and the exception will be passed to the calling thread. |
Implemented in apache::geode::client::StringPrefixPartitionResolver.