public class HashFunctionPartitioner extends Object implements KeyPartitioner, Cloneable
Constructor and Description |
---|
HashFunctionPartitioner() |
HashFunctionPartitioner(int numSegments) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Hash |
getHash() |
int |
getSegment(Object key)
Obtains the segment for a key.
|
List<Integer> |
getSegmentEndHashes() |
int |
hashCode() |
void |
init(HashConfiguration configuration)
Initialization.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
applyAsInt, matches
public HashFunctionPartitioner()
public HashFunctionPartitioner(int numSegments)
public void init(HashConfiguration configuration)
KeyPartitioner
The partitioner can also use injection to access other cache-level or global components. This method will be called before any other injection methods.
Does not need to be thread-safe (Infinispan safely publishes the instance after initialization).
init
in interface KeyPartitioner
public int getSegment(Object key)
KeyPartitioner
getSegment
in interface KeyPartitioner
public Hash getHash()
Copyright © 2021 JBoss by Red Hat. All rights reserved.