public class HashFunctionPartitioner extends Object implements KeyPartitioner
Modifier and Type | Class and Description |
---|---|
static class |
HashFunctionPartitioner.Externalizer |
Constructor and Description |
---|
HashFunctionPartitioner() |
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.
|
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 © 2022 JBoss, a division of Red Hat. All rights reserved.