Class BaseStringEntityPartitioner<EK extends EntityKey<EK>>
java.lang.Object
io.datarouter.model.key.entity.base.BaseEntityPartitioner<EK>
io.datarouter.model.key.entity.base.BaseStringEntityPartitioner<EK>
- All Implemented Interfaces:
EntityPartitioner<EK>
- Direct Known Subclasses:
BaseStringDjb16EntityPartitioner
public abstract class BaseStringEntityPartitioner<EK extends EntityKey<EK>> extends BaseEntityPartitioner<EK>
-
Constructor Summary
Constructors Constructor Description BaseStringEntityPartitioner(Function<String,Long> hashMethod, int numPartitions) -
Method Summary
Modifier and Type Method Description intgetPartition(EK ek)protected abstract StringmakeStringHashInput(EK ek)Methods inherited from class io.datarouter.model.key.entity.base.BaseEntityPartitioner
getAllPartitions, getAllPrefixes, getAllPrefixesArray, getNextPrefix, getNumPartitions, getNumPrefixBytes, getPrefix, getPrefix, isLastPartition, parsePartitionFromBytesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.datarouter.model.key.entity.EntityPartitioner
scanAllPartitions, scanAllPrefixes, scanPartitions, scanPrefixes