public class MergeIterator<E> extends Object implements org.apache.flink.util.MutableObjectIterator<E>
TypeComparator class, specifically TypeComparator.setReference(Object)
and TypeComparator.compareToReference(TypeComparator).| Constructor and Description |
|---|
MergeIterator(List<org.apache.flink.util.MutableObjectIterator<E>> iterators,
org.apache.flink.api.common.typeutils.TypeComparator<E> comparator) |
| Modifier and Type | Method and Description |
|---|---|
E |
next()
Gets the next smallest element, with respect to the definition of order implied by
the
TypeSerializer provided to this iterator. |
E |
next(E reuse)
Gets the next smallest element, with respect to the definition of order implied by
the
TypeSerializer provided to this iterator. |
public MergeIterator(List<org.apache.flink.util.MutableObjectIterator<E>> iterators, org.apache.flink.api.common.typeutils.TypeComparator<E> comparator) throws IOException
iterators - comparator - IOExceptionpublic E next(E reuse) throws IOException
TypeSerializer provided to this iterator.next in interface org.apache.flink.util.MutableObjectIterator<E>reuse - Object that may be reused.IOExceptionMutableObjectIterator.next(java.lang.Object)public E next() throws IOException
TypeSerializer provided to this iterator.next in interface org.apache.flink.util.MutableObjectIterator<E>IOExceptionMutableObjectIterator.next()Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.