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)
KeyPartitionerThe 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 KeyPartitionerpublic int getSegment(Object key)
KeyPartitionergetSegment in interface KeyPartitionerpublic Hash getHash()
Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.