Package org.apache.druid.collections
Class CombiningIterator<T>
java.lang.Object
org.apache.druid.collections.CombiningIterator<T>
- All Implemented Interfaces:
Iterator<T>
-
Constructor Summary
ConstructorsConstructorDescriptionCombiningIterator(Iterator<T> it, Comparator<T> comparator, BinaryOperator<T> fn) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> CombiningIterator<T> create(Iterator<T> it, Comparator<T> comparator, BinaryOperator<T> fn) booleanhasNext()next()voidremove()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
CombiningIterator
-
-
Method Details
-
create
public static <T> CombiningIterator<T> create(Iterator<T> it, Comparator<T> comparator, BinaryOperator<T> fn) -
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-