public class CassandraShard extends Object
| 构造器和说明 |
|---|
CassandraShard(CassandraSessionPool.Session session,
String keyspace,
String table) |
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–2021. All rights reserved.