public class KeyGroupRangeOffsets extends Object implements Iterable<org.apache.flink.api.java.tuple.Tuple2<Integer,Long>>, Serializable
| 构造器和说明 |
|---|
KeyGroupRangeOffsets(int rangeStart,
int rangeEnd)
Creates key-group range with offsets from the given start key-group to end key-group.
|
KeyGroupRangeOffsets(int rangeStart,
int rangeEnd,
long[] offsets)
Creates key-group range with offsets from the given start key-group to end key-group.
|
KeyGroupRangeOffsets(KeyGroupRange keyGroupRange)
Creates key-group range with offsets for the given key-group range, where all offsets are
initially zero.
|
KeyGroupRangeOffsets(KeyGroupRange keyGroupRange,
long[] offsets)
Creates key-group range with offsets from the given key-group range.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
KeyGroupRangeOffsets |
getIntersection(KeyGroupRange keyGroupRange)
Returns a key-group range with offsets which is the intersection of the internal key-group
range with the given key-group range.
|
long |
getKeyGroupOffset(int keyGroup)
Returns the offset for the given key-group.
|
KeyGroupRange |
getKeyGroupRange() |
int |
hashCode() |
Iterator<org.apache.flink.api.java.tuple.Tuple2<Integer,Long>> |
iterator() |
static IllegalArgumentException |
newIllegalKeyGroupException(int keyGroup,
KeyGroupRange keyGroupRange) |
void |
setKeyGroupOffset(int keyGroup,
long offset)
Sets the offset for the given key-group.
|
String |
toString() |
forEach, spliteratorpublic KeyGroupRangeOffsets(KeyGroupRange keyGroupRange, long[] offsets)
keyGroupRange - The range of key-groups.offsets - The aligned array of offsets for the given key-groups.public KeyGroupRangeOffsets(int rangeStart,
int rangeEnd,
long[] offsets)
rangeStart - Start key-group of the range (inclusive)rangeEnd - End key-group of the range (inclusive)offsets - The aligned array of offsets for the given key-groups.public KeyGroupRangeOffsets(int rangeStart,
int rangeEnd)
rangeStart - Start key-group of the range (inclusive)rangeEnd - End key-group of the range (inclusive)public KeyGroupRangeOffsets(KeyGroupRange keyGroupRange)
keyGroupRange - The range of key-groups.public static IllegalArgumentException newIllegalKeyGroupException(int keyGroup, KeyGroupRange keyGroupRange)
public long getKeyGroupOffset(int keyGroup)
keyGroup - Key-group for which we query the offset. Key-group must be contained in the
range.public void setKeyGroupOffset(int keyGroup,
long offset)
keyGroup - Key-group for which we set the offset. Must be contained in the range.offset - Offset for the key-group.public KeyGroupRangeOffsets getIntersection(KeyGroupRange keyGroupRange)
keyGroupRange - Key-group range to intersect with the internal key-group range.public KeyGroupRange getKeyGroupRange()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.