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