public class GroupingPartitioner extends Object implements KeyPartitioner
Group
annotations to map
grouped keys to the same segment.Constructor and Description |
---|
GroupingPartitioner(KeyPartitioner partitioner,
GroupManager groupManager) |
Modifier and Type | Method and Description |
---|---|
int |
getSegment(Object key)
Obtains the segment for a key.
|
KeyPartitioner |
unwrap() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public GroupingPartitioner(KeyPartitioner partitioner, GroupManager groupManager)
public int getSegment(Object key)
KeyPartitioner
getSegment
in interface KeyPartitioner
public KeyPartitioner unwrap()
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.