Quantcast
Channel: Gigaspaces XAP forum - RSS feed
Viewing all articles
Browse latest Browse all 1486

Find partition from Partition id

$
0
0
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?

Viewing all articles
Browse latest Browse all 1486

Trending Articles