public class DatasetAffinityFunctionWrapper extends Object implements AffinityFunction
| Constructor and Description |
|---|
DatasetAffinityFunctionWrapper(AffinityFunction delegate)
Constructs a new instance of affinity function wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
List<List<ClusterNode>> |
assignPartitions(AffinityFunctionContext affCtx) |
int |
partition(Object key)
Returns key as a partition index.
|
int |
partitions() |
void |
removeNode(UUID nodeId) |
void |
reset() |
public DatasetAffinityFunctionWrapper(AffinityFunction delegate)
delegate - Affinity function which actually performs all methods except partition().public void reset()
reset in interface AffinityFunctionpublic int partitions()
partitions in interface AffinityFunctionpublic int partition(Object key)
partition in interface AffinityFunctionkey - Partition index.public List<List<ClusterNode>> assignPartitions(AffinityFunctionContext affCtx)
assignPartitions in interface AffinityFunctionpublic void removeNode(UUID nodeId)
removeNode in interface AffinityFunction
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.23-p1 Release Date : November 19 2025