Class AbstractParallelIterable<T,B extends Batch<T>>
java.lang.Object
org.eclipse.collections.impl.lazy.parallel.AbstractParallelIterable<T,B>
- All Implemented Interfaces:
ParallelIterable<T>
- Direct Known Subclasses:
AbstractParallelIterableImpl,AbstractParallelListIterable,AbstractParallelSortedSetIterable,AbstractParallelUnsortedBag,AbstractParallelUnsortedSetIterable
public abstract class AbstractParallelIterable<T,B extends Batch<T>> extends Object implements ParallelIterable<T>
-
Constructor Summary
Constructors Constructor Description AbstractParallelIterable() -
Method Summary
Modifier and Type Method Description <K, V> MapIterable<K,V>aggregateBy(Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V,? super T,? extends V> nonMutatingAggregator)<K, V> MapIterable<K,V>aggregateInPlaceBy(Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V,? super T> mutatingAggregator)<P> booleanallSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)<P> booleananySatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)voidappendString(Appendable appendable, String start, String separator, String end)intcount(Predicate<? super T> predicate)<P> intcountWith(Predicate2<? super T,? super P> predicate, P parameter)TdetectIfNone(Predicate<? super T> predicate, Function0<? extends T> function)<P> TdetectWith(Predicate2<? super T,? super P> predicate, P parameter)<P> TdetectWithIfNone(Predicate2<? super T,? super P> predicate, P parameter, Function0<? extends T> function)<P> voidforEachWith(Procedure2<? super T,? super P> procedure, P parameter)abstract intgetBatchSize()abstract ExecutorServicegetExecutorService()<V> MapIterable<V,T>groupByUniqueKey(Function<? super T,? extends V> function)Tmax()Tmax(Comparator<? super T> comparator)<V extends Comparable<? super V>>
TmaxBy(Function<? super T,? extends V> function)Tmin()Tmin(Comparator<? super T> comparator)<V extends Comparable<? super V>>
TminBy(Function<? super T,? extends V> function)booleannoneSatisfy(Predicate<? super T> predicate)<P> booleannoneSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)abstract LazyIterable<B>split()doublesumOfDouble(DoubleFunction<? super T> function)Returns the final double result of evaluating function for each element of the iterable in parallel and adding the results together.doublesumOfFloat(FloatFunction<? super T> function)Returns the final double result of evaluating function for each element of the iterable in parallel and adding the results together.longsumOfInt(IntFunction<? super T> function)Returns the final long result of evaluating function for each element of the iterable in parallel and adding the results together.longsumOfLong(LongFunction<? super T> function)Returns the final long result of evaluating function for each element of the iterable in parallel and adding the results together.<E> E[]toArray(E[] array)MutableBag<T>toBag()MutableList<T>toList()<NK, NV> MutableMap<NK,NV>toMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)MutableSet<T>toSet()MutableSortedBag<T>toSortedBag()MutableSortedBag<T>toSortedBag(Comparator<? super T> comparator)<V extends Comparable<? super V>>
MutableSortedBag<T>toSortedBagBy(Function<? super T,? extends V> function)MutableList<T>toSortedList(Comparator<? super T> comparator)<V extends Comparable<? super V>>
MutableList<T>toSortedListBy(Function<? super T,? extends V> function)<NK, NV> MutableSortedMap<NK,NV>toSortedMap(Comparator<? super NK> comparator, Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)<NK, NV> MutableSortedMap<NK,NV>toSortedMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)MutableSortedSet<T>toSortedSet()MutableSortedSet<T>toSortedSet(Comparator<? super T> comparator)<V extends Comparable<? super V>>
MutableSortedSet<T>toSortedSetBy(Function<? super T,? extends V> function)StringtoString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.ParallelIterable
allSatisfy, anySatisfy, appendString, appendString, asUnique, collect, collectIf, collectWith, detect, flatCollect, forEach, groupBy, groupByEach, makeString, makeString, makeString, reject, rejectWith, select, selectInstancesOf, selectWith, toArray, toSortedList
-
Constructor Details
-
AbstractParallelIterable
public AbstractParallelIterable()
-
-
Method Details
-
getExecutorService
-
getBatchSize
public abstract int getBatchSize() -
split
-
toString
-
appendString
- Specified by:
appendStringin interfaceParallelIterable<T>
-
forEachWith
- Specified by:
forEachWithin interfaceParallelIterable<T>
-
anySatisfyWith
- Specified by:
anySatisfyWithin interfaceParallelIterable<T>
-
allSatisfyWith
- Specified by:
allSatisfyWithin interfaceParallelIterable<T>
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceParallelIterable<T>
-
noneSatisfyWith
- Specified by:
noneSatisfyWithin interfaceParallelIterable<T>
-
detectWith
- Specified by:
detectWithin interfaceParallelIterable<T>
-
detectIfNone
- Specified by:
detectIfNonein interfaceParallelIterable<T>
-
detectWithIfNone
public <P> T detectWithIfNone(Predicate2<? super T,? super P> predicate, P parameter, Function0<? extends T> function)- Specified by:
detectWithIfNonein interfaceParallelIterable<T>
-
toArray
public <E> E[] toArray(E[] array)- Specified by:
toArrayin interfaceParallelIterable<T>
-
toList
- Specified by:
toListin interfaceParallelIterable<T>
-
toSortedList
- Specified by:
toSortedListin interfaceParallelIterable<T>
-
toSortedListBy
public <V extends Comparable<? super V>> MutableList<T> toSortedListBy(Function<? super T,? extends V> function)- Specified by:
toSortedListByin interfaceParallelIterable<T>
-
toSet
- Specified by:
toSetin interfaceParallelIterable<T>
-
toSortedSet
- Specified by:
toSortedSetin interfaceParallelIterable<T>
-
toSortedSetBy
public <V extends Comparable<? super V>> MutableSortedSet<T> toSortedSetBy(Function<? super T,? extends V> function)- Specified by:
toSortedSetByin interfaceParallelIterable<T>
-
toBag
- Specified by:
toBagin interfaceParallelIterable<T>
-
toSortedBag
- Specified by:
toSortedBagin interfaceParallelIterable<T>
-
toSortedBag
- Specified by:
toSortedBagin interfaceParallelIterable<T>
-
toSortedBagBy
public <V extends Comparable<? super V>> MutableSortedBag<T> toSortedBagBy(Function<? super T,? extends V> function)- Specified by:
toSortedBagByin interfaceParallelIterable<T>
-
toSortedSet
- Specified by:
toSortedSetin interfaceParallelIterable<T>
-
toMap
public <NK, NV> MutableMap<NK,NV> toMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)- Specified by:
toMapin interfaceParallelIterable<T>
-
toSortedMap
public <NK, NV> MutableSortedMap<NK,NV> toSortedMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)- Specified by:
toSortedMapin interfaceParallelIterable<T>
-
toSortedMap
public <NK, NV> MutableSortedMap<NK,NV> toSortedMap(Comparator<? super NK> comparator, Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)- Specified by:
toSortedMapin interfaceParallelIterable<T>
-
aggregateBy
public <K, V> MapIterable<K,V> aggregateBy(Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V,? super T,? extends V> nonMutatingAggregator)- Specified by:
aggregateByin interfaceParallelIterable<T>
-
aggregateInPlaceBy
public <K, V> MapIterable<K,V> aggregateInPlaceBy(Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V,? super T> mutatingAggregator)- Specified by:
aggregateInPlaceByin interfaceParallelIterable<T>
-
count
- Specified by:
countin interfaceParallelIterable<T>
-
countWith
- Specified by:
countWithin interfaceParallelIterable<T>
-
min
- Specified by:
minin interfaceParallelIterable<T>
-
max
- Specified by:
maxin interfaceParallelIterable<T>
-
min
- Specified by:
minin interfaceParallelIterable<T>
-
max
- Specified by:
maxin interfaceParallelIterable<T>
-
minBy
- Specified by:
minByin interfaceParallelIterable<T>
-
maxBy
- Specified by:
maxByin interfaceParallelIterable<T>
-
sumOfInt
Description copied from interface:ParallelIterableReturns the final long result of evaluating function for each element of the iterable in parallel and adding the results together.- Specified by:
sumOfIntin interfaceParallelIterable<T>
-
sumOfFloat
Description copied from interface:ParallelIterableReturns the final double result of evaluating function for each element of the iterable in parallel and adding the results together. It uses Kahan summation algorithm to reduce numerical error.- Specified by:
sumOfFloatin interfaceParallelIterable<T>
-
sumOfLong
Description copied from interface:ParallelIterableReturns the final long result of evaluating function for each element of the iterable in parallel and adding the results together.- Specified by:
sumOfLongin interfaceParallelIterable<T>
-
sumOfDouble
Description copied from interface:ParallelIterableReturns the final double result of evaluating function for each element of the iterable in parallel and adding the results together. It uses Kahan summation algorithm to reduce numerical error.- Specified by:
sumOfDoublein interfaceParallelIterable<T>
-
groupByUniqueKey
- Specified by:
groupByUniqueKeyin interfaceParallelIterable<T>
-