public class StringShardStrategy extends Object implements ShardStrategy<String,String>
| Constructor and Description |
|---|
StringShardStrategy()
Creates a shard strategy.
|
StringShardStrategy(String rowKeyPrefix)
Creates a shard strategy.
|
public StringShardStrategy()
public StringShardStrategy(String rowKeyPrefix)
rowKeyPrefix - row key prefix.public String getRowKey(String columnName)
ShardStrategygetRowKey in interface ShardStrategy<String,String>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.