Apache Geode Native .NET Reference 1.15.0
|
Implementers of interface
enable custom partitioning on the
. More...
#include <IPartitionResolver.hpp>
Inherited by Apache::Geode::Client::IFixedPartitionResolver< TKey, TValue >.
Public Member Functions | |
String ^ | GetName () |
Returns the name of the PartitionResolver. More... | |
Object ^ | GetRoutingObject (EntryEvent< TKey, TValue >^ key) |
return object associated with entry event which allows the Partitioned Region to store associated data together. More... | |
Implementers of interface
enable custom partitioning on the
.
    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. |