Class FunctionalIterable<T>
java.lang.Object
org.apache.druid.java.util.common.guava.FunctionalIterable<T>
- All Implemented Interfaces:
Iterable<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> FunctionalIterable<T> drop(int numToDrop) iterator()<RetType> FunctionalIterable<RetType> limit(int limit) <RetType> FunctionalIterable<RetType> <RetType> FunctionalIterable<RetType> transformCat(com.google.common.base.Function<T, Iterable<RetType>> fn) <InType1,InType2, RetType>
FunctionalIterable<RetType> trinaryTransform(Iterable<InType1> iterable1, Iterable<InType2> iterable2, TrinaryFn<T, InType1, InType2, RetType> trinaryFn) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FunctionalIterable
-
-
Method Details
-
create
-
iterator
-
transform
public <RetType> FunctionalIterable<RetType> transform(com.google.common.base.Function<T, RetType> fn) -
transformCat
public <RetType> FunctionalIterable<RetType> transformCat(com.google.common.base.Function<T, Iterable<RetType>> fn) -
keep
-
filter
-
drop
-
limit
-
trinaryTransform
public <InType1,InType2, FunctionalIterable<RetType> trinaryTransformRetType> (Iterable<InType1> iterable1, Iterable<InType2> iterable2, TrinaryFn<T, InType1, InType2, RetType> trinaryFn)
-