Class FunctionalIterable<T>
- java.lang.Object
-
- org.apache.druid.java.util.common.guava.FunctionalIterable<T>
-
-
Constructor Summary
Constructors Constructor Description FunctionalIterable(Iterable<T> delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> FunctionalIterable<T>create(Iterable<T> delegate)FunctionalIterable<T>drop(int numToDrop)FunctionalIterable<T>filter(com.google.common.base.Predicate<T> pred)Iterator<T>iterator()<RetType> FunctionalIterable<RetType>keep(com.google.common.base.Function<T,RetType> fn)FunctionalIterable<T>limit(int limit)<RetType> FunctionalIterable<RetType>transform(com.google.common.base.Function<T,RetType> fn)<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, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
create
public static <T> FunctionalIterable<T> create(Iterable<T> delegate)
-
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
public <RetType> FunctionalIterable<RetType> keep(com.google.common.base.Function<T,RetType> fn)
-
filter
public FunctionalIterable<T> filter(com.google.common.base.Predicate<T> pred)
-
drop
public FunctionalIterable<T> drop(int numToDrop)
-
limit
public FunctionalIterable<T> limit(int limit)
-
trinaryTransform
public <InType1,InType2,RetType> FunctionalIterable<RetType> trinaryTransform(Iterable<InType1> iterable1, Iterable<InType2> iterable2, TrinaryFn<T,InType1,InType2,RetType> trinaryFn)
-
-