Package org.apache.flink.runtime.state
Interface KeyGroupsList
- All Known Implementing Classes:
KeyGroupRange
This interface offers ordered random read access to multiple key group ids.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(int keyGroupId) Returns true, if the given key group id is contained in the list, otherwise false.intgetKeyGroupId(int idx) Returns the id of the keygroup at the given index, where index in interval [0,getNumberOfKeyGroups()[.intReturns the number of key group ids in the list.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getNumberOfKeyGroups
int getNumberOfKeyGroups()Returns the number of key group ids in the list. -
getKeyGroupId
int getKeyGroupId(int idx) Returns the id of the keygroup at the given index, where index in interval [0,getNumberOfKeyGroups()[.- Parameters:
idx- the index into the list- Returns:
- key group id at the given index
-
contains
boolean contains(int keyGroupId) Returns true, if the given key group id is contained in the list, otherwise false.
-