Class BaseByteArrayEntityPartitioner<EK extends EntityKey<EK>>
java.lang.Object
io.datarouter.model.key.entity.base.BaseEntityPartitioner<EK>
io.datarouter.model.key.entity.base.BaseByteArrayEntityPartitioner<EK>
- All Implemented Interfaces:
EntityPartitioner<EK>
- Direct Known Subclasses:
DefaultEntityPartitioner
public abstract class BaseByteArrayEntityPartitioner<EK extends EntityKey<EK>> extends BaseEntityPartitioner<EK>
-
Constructor Summary
Constructors Constructor Description BaseByteArrayEntityPartitioner(Function<byte[],Long> hashMethod, int numPartitions) -
Method Summary
Modifier and Type Method Description intgetPartition(EK ek)protected abstract byte[]makeByteArrayHashInput(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