blob: df8d56eeea2d13eae083a3e51eb1a67562bf33a3 [file] [log] [blame]
package org.onosproject.store.consistent.impl;
/**
* Partitioner is responsible for mapping keys to individual database partitions.
*
* @param <K> key type.
*/
public interface Partitioner<K> {
/**
* Returns the database partition.
* @param tableName table name
* @param key key
* @return Database partition
*/
Database getPartition(String tableName, K key);
}