Class NonReusingSortMergeCoGroupIterator<T1,​T2>

    • Constructor Summary

      Constructors 
      Constructor Description
      NonReusingSortMergeCoGroupIterator​(org.apache.flink.util.MutableObjectIterator<T1> input1, org.apache.flink.util.MutableObjectIterator<T2> input2, org.apache.flink.api.common.typeutils.TypeSerializer<T1> serializer1, org.apache.flink.api.common.typeutils.TypeComparator<T1> groupingComparator1, org.apache.flink.api.common.typeutils.TypeSerializer<T2> serializer2, org.apache.flink.api.common.typeutils.TypeComparator<T2> groupingComparator2, org.apache.flink.api.common.typeutils.TypePairComparator<T1,​T2> pairComparator)  
    • Constructor Detail

      • NonReusingSortMergeCoGroupIterator

        public NonReusingSortMergeCoGroupIterator​(org.apache.flink.util.MutableObjectIterator<T1> input1,
                                                  org.apache.flink.util.MutableObjectIterator<T2> input2,
                                                  org.apache.flink.api.common.typeutils.TypeSerializer<T1> serializer1,
                                                  org.apache.flink.api.common.typeutils.TypeComparator<T1> groupingComparator1,
                                                  org.apache.flink.api.common.typeutils.TypeSerializer<T2> serializer2,
                                                  org.apache.flink.api.common.typeutils.TypeComparator<T2> groupingComparator2,
                                                  org.apache.flink.api.common.typeutils.TypePairComparator<T1,​T2> pairComparator)
    • Method Detail

      • getValues1

        public Iterable<T1> getValues1()
        Description copied from interface: CoGroupTaskIterator
        Returns an iterable over the left input values for the current key.
        Specified by:
        getValues1 in interface CoGroupTaskIterator<T1,​T2>
        Returns:
        an iterable over the left input values for the current key.
      • getValues2

        public Iterable<T2> getValues2()
        Description copied from interface: CoGroupTaskIterator
        Returns an iterable over the left input values for the current key.
        Specified by:
        getValues2 in interface CoGroupTaskIterator<T1,​T2>
        Returns:
        an iterable over the left input values for the current key.
      • next

        public boolean next()
                     throws IOException
        Description copied from interface: CoGroupTaskIterator
        Moves the internal pointer to the next key (if present). Returns true if the operation was successful or false if no more keys are present.

        The key is not necessarily shared by both inputs. In that case an empty iterator is returned by getValues1() or getValues2().

        Specified by:
        next in interface CoGroupTaskIterator<T1,​T2>
        Returns:
        true on success, false if no more keys are present
        Throws:
        IOException