K
- type of the row key to implement the shard strategy on.C
- type of the column name or column key.public interface ShardStrategy<K extends Serializable,C>
Writing always to one key (when using wide rows in secondary indexes) means that all writes for that key will go to one node.
Wide rows also have a 2 billion size restriction. So if a row could have more than 2 billion columns applying a shard strategy is mandatory.
K getRowKey(C columnName)
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 © 2015. All Rights Reserved.