C - type of the column name or column key.public class HashShardStrategy<C> extends Object implements ShardStrategy<String,C>
| Constructor and Description |
|---|
HashShardStrategy(String rowKeyPrefix,
int partition)
Creates a shard strategy.
|
public HashShardStrategy(String rowKeyPrefix, int partition)
rowKeyPrefix - row key prefix.partition - the number of rows we want to split the data across.public String getRowKey(C columnName)
ShardStrategygetRowKey in interface ShardStrategy<String,C>columnName - column name to fins a sharded key for. This could be
part of the column name if the shard strategy is applied to a
single component of a composite column name.Copyright © 2014. All Rights Reserved.