public class RandomBulkTokenFactory extends com.datastax.oss.driver.internal.core.metadata.token.RandomTokenFactory implements BulkTokenFactory
BulkTokenFactory for the Random Partitioner.| Modifier and Type | Field and Description |
|---|---|
static BigInteger |
TOTAL_TOKEN_COUNT |
| Constructor and Description |
|---|
RandomBulkTokenFactory() |
| Modifier and Type | Method and Description |
|---|---|
TokenRangeClusterer |
clusterer()
Returns a
TokenRangeClusterer for the type of tokens managed by this token factory. |
BulkTokenRange |
range(com.datastax.oss.driver.api.core.metadata.token.Token start,
com.datastax.oss.driver.api.core.metadata.token.Token end,
Set<com.datastax.oss.driver.api.core.metadata.EndPoint> replicas)
Creates a
BulkTokenRange for the given start and end tokens. |
TokenRangeSplitter |
splitter()
Returns a
TokenRangeSplitter for the type of tokens managed by this token factory. |
BigInteger |
totalTokenCount() |
format, getPartitionerName, hash, minToken, parse, rangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforPartitionerpublic static final BigInteger TOTAL_TOKEN_COUNT
@NonNull public BigInteger totalTokenCount()
totalTokenCount in interface BulkTokenFactory@NonNull public BulkTokenRange range(@NonNull com.datastax.oss.driver.api.core.metadata.token.Token start, @NonNull com.datastax.oss.driver.api.core.metadata.token.Token end, @NonNull Set<com.datastax.oss.driver.api.core.metadata.EndPoint> replicas)
BulkTokenFactoryBulkTokenRange for the given start and end tokens.range in interface BulkTokenFactory@NonNull public TokenRangeSplitter splitter()
BulkTokenFactoryTokenRangeSplitter for the type of tokens managed by this token factory.splitter in interface BulkTokenFactory@NonNull public TokenRangeClusterer clusterer()
BulkTokenFactoryTokenRangeClusterer for the type of tokens managed by this token factory.clusterer in interface BulkTokenFactoryCopyright © 2017–2020 DataStax. All rights reserved.