Package org.apache.flink.runtime.state
Interface KeyGroupsList
-
- All Known Implementing Classes:
KeyGroupRange
public interface KeyGroupsList extends Iterable<Integer>
This interface offers ordered random read access to multiple key group ids.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(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()[.intgetNumberOfKeyGroups()Returns the number of key group ids in the list.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
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.
-
-