public class SimpleTableHashPartitioner extends DatabasePartitioner
This class uses a md5 hash based hashing scheme for hashing the table name to a partition. This partitioner maps all keys for a table to the same database partition.
partitions| Constructor and Description |
|---|
SimpleTableHashPartitioner(List<Database> partitions) |
| Modifier and Type | Method and Description |
|---|---|
Database |
getPartition(String tableName,
String key)
Returns the database partition.
|
hashpublic Database getPartition(String tableName, String key)
PartitionertableName - table namekey - keyCopyright © 2015. All rights reserved.