public class MergeIterator<E> extends Object implements MutableObjectIterator<E>
TypeComparator class, specifically TypeComparator.setReference(Object)
and TypeComparator.compareToReference(TypeComparator).| Constructor and Description |
|---|
MergeIterator(List<MutableObjectIterator<E>> iterators,
TypeSerializer<E> serializer,
TypeComparator<E> comparator) |
| Modifier and Type | Method and Description |
|---|---|
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<MutableObjectIterator<E>> iterators, TypeSerializer<E> serializer, TypeComparator<E> comparator) throws IOException
iterators - serializer - comparator - IOExceptionpublic E next(E reuse) throws IOException
TypeSerializer provided to this iterator.next in interface MutableObjectIterator<E>reuse - The object into which the result is put. The contents of the reuse object
is only valid after this method, if the method returned true. Otherwise
the contents is undefined.IOExceptionMutableObjectIterator.next(java.lang.Object)Copyright © 2015 The Apache Software Foundation. All rights reserved.