VMware Tanzu GemFire .NET Client API Reference
IPartitionResolver< TKey, TValue > Interface Template Reference
Implementers of interface More...
Public Member Functions | |
| object | GetRoutingObject (IEntryEvent< TKey, TValue > key) |
| return object associated with entry event which allows the Partitioned Region to store associated data together. More... | |
Properties | |
| string | Name [get] |
| Returns the name of the PartitionResolver. More... | |
Detailed Description
Implementers of interface
PartitionResolver enable custom partitioning on the PartitionedRegion.
- The Key class or callback arg can implement PartitionResolver interface to enable custom partitioning OR
- Configure your own PartitionResolver class in partition attributes (For instance when the Key is a primitive type or String) Implement the appropriate equals - For all implementations, you need to be sure to code the class equals method so it properly verifies equality for the PartitionResolver implementation. This might mean verifying that class names are the same or that the returned routing objects are the same etc.. When you initiate the partitioned region on multiple nodes, GemFire uses the equals method to ensure you are using the same PartitionResolver implementation for all of the nodes for the region. GemFire uses the routing object's hashCode to determine where the data is being managed.
Member Function Documentation
◆ GetRoutingObject()
| object IPartitionResolver< TKey, TValue >.GetRoutingObject | ( | IEntryEvent< TKey, TValue > | key | ) |
return object associated with entry event which allows the Partitioned Region to store associated data together.
throws RuntimeException - any exception thrown will terminate the operation and the exception will be passed to the calling thread.
- Parameters
-
key key the detail of the entry event.
Property Documentation
◆ Name
|
get |
Returns the name of the PartitionResolver.
This function does not throw any exception.
- Returns
- the name of the PartitionResolver
The documentation for this interface was generated from the following file:
- gemfire.client/Interfaces/IPartitionResolver.cs

