Class FunctionalIterator<T>
- java.lang.Object
-
- org.apache.druid.java.util.common.guava.FunctionalIterator<T>
-
-
Constructor Summary
Constructors Constructor Description FunctionalIterator(Iterator<T> delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> FunctionalIterator<T>create(Iterator<T> delegate)FunctionalIterator<T>drop(int numToDrop)FunctionalIterator<T>filter(com.google.common.base.Predicate<T> pred)booleanhasNext()<RetType> FunctionalIterator<RetType>keep(com.google.common.base.Function<T,RetType> fn)Tnext()voidremove()<RetType> FunctionalIterator<RetType>transform(com.google.common.base.Function<T,RetType> fn)<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, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
create
public static <T> FunctionalIterator<T> create(Iterator<T> delegate)
-
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
public <RetType> FunctionalIterator<RetType> keep(com.google.common.base.Function<T,RetType> fn)
-
filter
public FunctionalIterator<T> filter(com.google.common.base.Predicate<T> pred)
-
drop
public FunctionalIterator<T> drop(int numToDrop)
-
-