VMware VMware GemFire Native .NET Reference 10.4.3
|
Implementers of interface PartitionResolver
enable custom partitioning on the PartitionedRegion
.
More...
#include <IPartitionResolver.hpp>
Inherited by Apache::Geode::Client::IFixedPartitionResolver< TKey, TValue >.
Public Member Functions | |
String ^ | GetName () |
Returns the name of the PartitionResolver. | |
Object ^ | GetRoutingObject (EntryEvent< TKey, TValue >^ key) |
return object associated with entry event which allows the Partitioned Region to store associated data together. | |
Implementers of interface PartitionResolver
enable custom partitioning on the PartitionedRegion
.
    public TradingKey(){ }
    public TradingKey(Month month, Year year){
        this.month = month;
        this.year = year;
    }
    public Serializable getRoutingObject(EntryOperation key){
        return this.month + this.year;
    }
}
In the example above, all trade entries with the same month and year are guaranteed to be colocated.
String ^ Apache::Geode::Client::IPartitionResolver< TKey, TValue >::GetName | ( | ) |
Returns the name of the PartitionResolver.
This function does not throw any exception.
Object ^ Apache::Geode::Client::IPartitionResolver< TKey, TValue >::GetRoutingObject | ( | EntryEvent< 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.
key | key the detail of the entry event. |