public class CassandraShard extends Object
| Constructor and Description |
|---|
CassandraShard(CassandraSessionPool.Session session,
String keyspace,
String table) |
| Modifier and Type | Method and Description |
|---|---|
List<Shard> |
getSplits(long splitPartitions,
long splitSize)
Get splits of a table
|
List<Shard> |
getSplits(String start,
String end,
int splitPartitions,
int splitSize)
Get splits of a table in specified range
NOTE: maybe we don't need this method
|
public CassandraShard(CassandraSessionPool.Session session, String keyspace, String table)
public List<Shard> getSplits(long splitPartitions, long splitSize)
splitPartitions: - expected partitions count per splitsplitSize: - expected size(bytes) per split,
splitPartitions will be ignored if splitSize is passedpublic List<Shard> getSplits(String start, String end, int splitPartitions, int splitSize)
start: - the start of rangeend: - the end of rangesplitPartitions: - expected partitions count per splitsplitSize: - expected size(bytes) per split,
splitPartitions will be ignored if splitSize is passedCopyright © 2017–2019. All rights reserved.