public interface NodeShardingInfo
| Modifier and Type | Method and Description |
|---|---|
int |
getShardsCount() |
int |
shardId(Token t)
Returns a shardId for a given Token.
|
int getShardsCount()
int shardId(Token t)
Accepts all types of Tokens but if the Token is not an instance of TokenLong64 then the return value could
be not meaningful (e.g. random shard). This method does not verify if the given Token belongs
to the Node.
Copyright © 2017–2024. All rights reserved.