public final class ReusingKeyGroupedIterator<E> extends Object implements KeyGroupedIterator<E>
| 限定符和类型 | 类和说明 |
|---|---|
class |
ReusingKeyGroupedIterator.ValuesIterator |
| 构造器和说明 |
|---|
ReusingKeyGroupedIterator(org.apache.flink.util.MutableObjectIterator<E> iterator,
org.apache.flink.api.common.typeutils.TypeSerializer<E> serializer,
org.apache.flink.api.common.typeutils.TypeComparator<E> comparator)
Initializes the KeyGroupedIterator.
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.flink.api.common.typeutils.TypeComparator<E> |
getComparatorWithCurrentReference() |
E |
getCurrent() |
ReusingKeyGroupedIterator.ValuesIterator |
getValues()
Returns an iterator over all values that belong to the current key.
|
boolean |
nextKey()
Moves the iterator to the next key.
|
public ReusingKeyGroupedIterator(org.apache.flink.util.MutableObjectIterator<E> iterator, org.apache.flink.api.common.typeutils.TypeSerializer<E> serializer, org.apache.flink.api.common.typeutils.TypeComparator<E> comparator)
iterator - An iterator over records, which are sorted by the key fields, in any order.serializer - The serializer for the data type iterated over.comparator - The comparator for the data type iterated over.public boolean nextKey()
throws IOException
getValues() method. Hence, if called
multiple times it "removes" pairs.nextKey 在接口中 KeyGroupedIterator<E>IOExceptionpublic org.apache.flink.api.common.typeutils.TypeComparator<E> getComparatorWithCurrentReference()
public E getCurrent()
getCurrent 在接口中 KeyGroupedIterator<E>public ReusingKeyGroupedIterator.ValuesIterator getValues()
null (before the first call to nextKey() and after all keys are
consumed. In general, this method returns always a non-null value, if a previous call to
nextKey() return true.getValues 在接口中 KeyGroupedIterator<E>Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.