How can I figure out Partition from Partition id?
Consider the Object below:
class A{
....
....
...
@SpaceId
String getId(){
.....
}
@SpaceRouting
Integer getRouting(){
return routingId;
}
}
If the value of routingId in class a is x.
What is the formula to get the partition?
Is it routingId.hashCode() % (number_of_partitions +1) + 1?
Is there some method in gigaspace to get it?
↧