Class FunctionalIterator<T>
java.lang.Object
org.apache.druid.java.util.common.guava.FunctionalIterator<T>
- All Implemented Interfaces:
Iterator<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> FunctionalIterator<T>drop(int numToDrop) booleanhasNext()<RetType> FunctionalIterator<RetType>next()voidremove()<RetType> FunctionalIterator<RetType><RetType> FunctionalIterator<RetType>transformCat(com.google.common.base.Function<T, Iterator<RetType>> fn) 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
-
FunctionalIterator
-
-
Method Details
-
create
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
transform
public <RetType> FunctionalIterator<RetType> transform(com.google.common.base.Function<T, RetType> fn) -
transformCat
public <RetType> FunctionalIterator<RetType> transformCat(com.google.common.base.Function<T, Iterator<RetType>> fn) -
keep
-
filter
-
drop
-