- java.lang.Object
-
- org.jooq.lambda.Agg
-
public class Agg extends java.lang.Object
A set of additionalCollector
implementations.The class name isn't set in stone and will change.
-
-
Constructor Summary
Constructors Constructor Description Agg()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.stream.Collector<java.lang.Boolean,?,java.lang.Boolean>
allMatch()
Get aCollector
that calculates theALL()
function.static <T> java.util.stream.Collector<T,?,java.lang.Boolean>
allMatch(java.util.function.Predicate<? super T> predicate)
Get aCollector
that calculates theALL()
function.static java.util.stream.Collector<java.lang.Boolean,?,java.lang.Boolean>
anyMatch()
Get aCollector
that calculates theANY()
function.static <T> java.util.stream.Collector<T,?,java.lang.Boolean>
anyMatch(java.util.function.Predicate<? super T> predicate)
Get aCollector
that calculates theANY()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<T>>
avg()
Get aCollector
that calculates theAVG()
for any type ofNumber
.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<U>>avg(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theAVG()
for any type ofNumber
.private static <T> double
avg0(java.util.List<T> list, java.util.function.ToDoubleFunction<? super T> function)
static <T> java.util.stream.Collector<T,?,java.util.Optional<T>>
bitAnd()
Get aCollector
that calculatesBIT_AND()
for any type ofNumber
.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<U>>bitAnd(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theBIT_AND()
for any type ofNumber
.static <T> java.util.stream.Collector<T,?,java.lang.Integer>
bitAndInt(java.util.function.ToIntFunction<? super T> function)
Get aCollector
that calculates theBIT_AND()
for any type ofNumber
.static <T> java.util.stream.Collector<T,?,java.lang.Long>
bitAndLong(java.util.function.ToLongFunction<? super T> function)
Get aCollector
that calculates theBIT_AND()
for any type ofNumber
.static <T> java.util.stream.Collector<T,?,java.util.Optional<T>>
bitOr()
Get aCollector
that calculatesBIT_OR()
for any type ofNumber
.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<U>>bitOr(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theBIT_OR()
for any type ofNumber
.static <T> java.util.stream.Collector<T,?,java.lang.Integer>
bitOrInt(java.util.function.ToIntFunction<? super T> function)
Get aCollector
that calculates theBIT_OR()
for any type ofNumber
.static <T> java.util.stream.Collector<T,?,java.lang.Long>
bitOrLong(java.util.function.ToLongFunction<? super T> function)
Get aCollector
that calculates theBIT_OR()
for any type ofNumber
.static java.util.stream.Collector<java.lang.CharSequence,?,java.lang.String>
commonPrefix()
Get aCollector
that calculates the common prefix of a set of strings.static java.util.stream.Collector<java.lang.CharSequence,?,java.lang.String>
commonSuffix()
Get aCollector
that calculates the common suffix of a set of strings.static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>>
correlationDouble()
Get aCollector
that calculates theCORR()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>
correlationDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theCORR()
function.static <T> java.util.stream.Collector<T,?,java.lang.Long>
count()
Get aCollector
that calculates theCOUNT(*)
function.static <T> java.util.stream.Collector<T,?,java.lang.Long>
countDistinct()
Get aCollector
that calculates theCOUNT (DISTINCT *)
function.static <T,U>
java.util.stream.Collector<T,?,java.lang.Long>countDistinctBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theCOUNT (DISTINCT expr)
function.static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>>
covarianceDouble()
Get aCollector
that calculates theCOVAR_POP()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>
covarianceDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theCOVAR_POP()
function.private static <T> java.util.function.Function<java.util.List<T>,java.util.Optional<java.lang.Double>>
covarianceFinisher(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY, java.util.function.BiFunction<java.util.List<T>,java.util.function.ToDoubleFunction<? super T>,java.lang.Double> sumOrAvg)
static <T extends java.lang.Comparable<? super T>>
java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>>denseRank(T value)
Get aCollector
that calculates theDENSE_RANK()
function given natural ordering.static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>>
denseRank(T value, java.util.Comparator<? super T> comparator)
Get aCollector
that calculates theDENSE_RANK()
function given a specific ordering.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>>denseRankBy(U value, java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates the derivedDENSE_RANK()
function given natural ordering.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>>denseRankBy(U value, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates the derivedDENSE_RANK()
function given a specific ordering.static <T> java.util.stream.Collector<T,?,Seq<T>>
dropping(long n)
Get aCollector
that skip the firstn
elements of a collection.static <T,A,R>
java.util.stream.Collector<T,?,R>filter(java.util.function.Predicate<? super T> predicate, java.util.stream.Collector<T,A,R> downstream)
Get aCollector
that filters data passed to downstream collector.static <T> java.util.stream.Collector<T,?,java.util.Optional<T>>
first()
Get aCollector
that calculates theFIRST
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<T>>
last()
Get aCollector
that calculates theLAST
function.private static <T1,T2,R>
java.util.Optional<R>mapAll(Tuple2<java.util.Optional<T1>,java.util.Optional<T2>> tuple, Function2<T1,T2,R> function)
private static <T1,T2,T3,R>
java.util.Optional<R>mapAll(Tuple3<java.util.Optional<T1>,java.util.Optional<T2>,java.util.Optional<T3>> tuple, Function3<T1,T2,T3,R> function)
static <T extends java.lang.Comparable<? super T>>
java.util.stream.Collector<T,?,java.util.Optional<T>>max()
Get aCollector
that calculates theMAX()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<T>>
max(java.util.Comparator<? super T> comparator)
Get aCollector
that calculates theMAX()
function.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,java.util.Optional<U>>max(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMAX()
function.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<U>>max(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMAX()
function.static <T extends java.lang.Comparable<? super T>>
java.util.stream.Collector<T,?,Seq<T>>maxAll()
Get aCollector
that calculates theMAX()
function, producing multiple results.static <T> java.util.stream.Collector<T,?,Seq<T>>
maxAll(java.util.Comparator<? super T> comparator)
Get aCollector
that calculates theMAX()
function, producing multiple results.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,Seq<U>>maxAll(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMAX()
function, producing multiple results.static <T,U>
java.util.stream.Collector<T,?,Seq<U>>maxAll(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMAX()
function, producing multiple results.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,Seq<T>>maxAllBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMAX()
function, producing multiple results.static <T,U>
java.util.stream.Collector<T,?,Seq<T>>maxAllBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMAX()
function, producing multiple results.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,java.util.Optional<T>>maxBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMAX()
function.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<T>>maxBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMAX()
function.static <T extends java.lang.Comparable<? super T>>
java.util.stream.Collector<T,?,java.util.Optional<T>>median()
Get aCollector
that calculates theMEDIAN()
function given natural ordering.static <T> java.util.stream.Collector<T,?,java.util.Optional<T>>
median(java.util.Comparator<? super T> comparator)
Get aCollector
that calculates theMEDIAN()
function given a specific ordering.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,java.util.Optional<U>>median(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMEDIAN()
function given a specific ordering.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<U>>median(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMEDIAN()
function given a specific ordering.static <T extends java.lang.Comparable<? super T>>
java.util.stream.Collector<T,?,Seq<T>>medianAll()
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given a specific ordering, producing multiple results.static <T> java.util.stream.Collector<T,?,Seq<T>>
medianAll(java.util.Comparator<? super T> comparator)
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given a specific ordering, producing multiple results.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,Seq<T>>medianAllBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates the derivedPERCENTILE_DISC(percentile)
function given a specific ordering, producing multiple results.static <T,U>
java.util.stream.Collector<T,?,Seq<T>>medianAllBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates the derivedMEDIAN()
function given natural ordering, producing multiple results.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,java.util.Optional<T>>medianBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates the derivedMEDIAN()
function given natural ordering.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<T>>medianBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates the derivedMEDIAN()
function given a specific ordering.static <T extends java.lang.Comparable<? super T>>
java.util.stream.Collector<T,?,java.util.Optional<T>>min()
Get aCollector
that calculates theMIN()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<T>>
min(java.util.Comparator<? super T> comparator)
Get aCollector
that calculates theMIN()
function.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,java.util.Optional<U>>min(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMIN()
function.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<U>>min(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMIN()
function.static <T extends java.lang.Comparable<? super T>>
java.util.stream.Collector<T,?,Seq<T>>minAll()
Get aCollector
that calculates theMIN()
function, producing multiple results.static <T> java.util.stream.Collector<T,?,Seq<T>>
minAll(java.util.Comparator<? super T> comparator)
Get aCollector
that calculates theMIN()
function, producing multiple results.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,Seq<U>>minAll(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMIN()
function, producing multiple results.static <T,U>
java.util.stream.Collector<T,?,Seq<U>>minAll(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMIN()
function, producing multiple results.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,Seq<T>>minAllBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMIN()
function, producing multiple results.static <T,U>
java.util.stream.Collector<T,?,Seq<T>>minAllBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMIN()
function, producing multiple results.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,java.util.Optional<T>>minBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMIN()
function.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<T>>minBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMIN()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<T>>
mode()
Get aCollector
that calculates theMODE()
function.private static <T,X>
java.util.stream.Collector<T,?,X>mode0(java.util.function.Function<? super Seq<Tuple2<T,java.lang.Long>>,? extends X> transformer)
static <T> java.util.stream.Collector<T,?,Seq<T>>
modeAll()
Get aCollector
that calculates theMODE()
function.static <T,U>
java.util.stream.Collector<T,?,Seq<T>>modeAllBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMODE()
function.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<T>>modeBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMODE()
function.static java.util.stream.Collector<java.lang.Boolean,?,java.lang.Boolean>
noneMatch()
Get aCollector
that calculates theNONE()
function.static <T> java.util.stream.Collector<T,?,java.lang.Boolean>
noneMatch(java.util.function.Predicate<? super T> predicate)
Get aCollector
that calculates theNONE()
function.static <T extends java.lang.Comparable<? super T>>
java.util.stream.Collector<T,?,java.util.Optional<T>>percentile(double percentile)
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given natural ordering.static <T> java.util.stream.Collector<T,?,java.util.Optional<T>>
percentile(double percentile, java.util.Comparator<? super T> comparator)
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given a specific ordering.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,java.util.Optional<U>>percentile(double percentile, java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given a specific ordering.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<U>>percentile(double percentile, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given a specific ordering.static <T extends java.lang.Comparable<? super T>>
java.util.stream.Collector<T,?,Seq<T>>percentileAll(double percentile)
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given a specific ordering, producing multiple results.static <T> java.util.stream.Collector<T,?,Seq<T>>
percentileAll(double percentile, java.util.Comparator<? super T> comparator)
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given a specific ordering, producing multiple results.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,Seq<T>>percentileAllBy(double percentile, java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates the derivedPERCENTILE_DISC(percentile)
function given a specific ordering, producing multiple results.static <T,U>
java.util.stream.Collector<T,?,Seq<T>>percentileAllBy(double percentile, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates the derivedPERCENTILE_DISC(percentile)
function given a specific ordering, producing multiple results.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,java.util.Optional<T>>percentileBy(double percentile, java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates the derivedPERCENTILE_DISC(percentile)
function given natural ordering.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<T>>percentileBy(double percentile, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates the derivedPERCENTILE_DISC(percentile)
function given a specific ordering.private static <T,U,R>
java.util.stream.Collector<T,java.util.List<Tuple2<T,U>>,R>percentileCollector(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator, java.util.function.Supplier<R> onEmpty, java.util.function.Function<T,R> onSingle, java.util.function.Function<java.util.List<Tuple2<T,U>>,R> finisher)
private static int
percentileIndex(double percentile, int size)
static <T extends java.lang.Comparable<? super T>>
java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>percentRank(T value)
Get aCollector
that calculates thePERCENT_RANK()
function given natural ordering.static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>
percentRank(T value, java.util.Comparator<? super T> comparator)
Get aCollector
that calculates thePERCENT_RANK()
function given a specific ordering.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>percentRankBy(U value, java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates the derivedPERCENT_RANK()
function given natural ordering.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>percentRankBy(U value, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates the derivedPERCENT_RANK()
function given a specific ordering.static <T extends java.lang.Comparable<? super T>>
java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>>rank(T value)
Get aCollector
that calculates theRANK()
function given natural ordering.static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>>
rank(T value, java.util.Comparator<? super T> comparator)
Get aCollector
that calculates theRANK()
function given a specific ordering.static <T,U extends java.lang.Comparable<? super U>>
java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>>rankBy(U value, java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates the derivedRANK()
function given natural ordering.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>>rankBy(U value, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates the derivedRANK()
function given a specific ordering.static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>>
regrAvgXDouble()
Get aCollector
that calculates theREGR_AVGX()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>
regrAvgXDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_AVGX()
function.static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>>
regrAvgYDouble()
Get aCollector
that calculates theREGR_AVGY()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>
regrAvgYDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_AVGY()
function.static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.lang.Long>
regrCount()
Get aCollector
that calculates theREGR_COUNT()
function.static <T> java.util.stream.Collector<T,?,java.lang.Long>
regrCount(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_COUNT()
function.static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>>
regrInterceptDouble()
Get aCollector
that calculates theREGR_INTERCEPT()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>
regrInterceptDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_INTERCEPT()
function.static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>>
regrR2Double()
Get aCollector
that calculates theregrR2Double()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>
regrR2Double(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theregrR2Double()
function.static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>>
regrSlopeDouble()
Get aCollector
that calculates theREGR_SLOPE()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>
regrSlopeDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_SLOPE()
function.static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>>
regrSxxDouble()
Get aCollector
that calculates theREGR_SXX()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>
regrSxxDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_SXX()
function.static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>>
regrSxyDouble()
Get aCollector
that calculates theREGR_SXY()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>
regrSxyDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_SXY()
function.static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>>
regrSyyDouble()
Get aCollector
that calculates theREGR_SYY()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>
regrSyyDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_SYY()
function.static <T> java.util.stream.Collector<java.lang.Double,?,java.util.Optional<java.lang.Double>>
stddevDouble()
Get aCollector
that calculates theSTDDEV_POP()
function.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>stddevDouble(java.util.function.ToDoubleFunction<? super T> function)
Get aCollector
that calculates theSTDDEV_POP()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<T>>
sum()
Get aCollector
that calculates theSUM()
for any type ofNumber
.static <T,U>
java.util.stream.Collector<T,?,java.util.Optional<U>>sum(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theSUM()
for any type ofNumber
.private static <T> double
sum0(java.util.List<T> list, java.util.function.ToDoubleFunction<? super T> function)
static <T> java.util.stream.Collector<T,?,Seq<T>>
taking(long n)
Get aCollector
that takes the firstn
elements from a collection.private static <T> double
variance0(java.util.List<T> l, java.util.function.ToDoubleFunction<? super T> function)
static java.util.stream.Collector<java.lang.Double,?,java.util.Optional<java.lang.Double>>
varianceDouble()
Get aCollector
that calculates theVAR_POP()
function.static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>>
varianceDouble(java.util.function.ToDoubleFunction<? super T> function)
Get aCollector
that calculates theVAR_POP()
function.
-
-
-
Method Detail
-
filter
public static <T,A,R> java.util.stream.Collector<T,?,R> filter(java.util.function.Predicate<? super T> predicate, java.util.stream.Collector<T,A,R> downstream)
Get aCollector
that filters data passed to downstream collector.
-
first
public static <T> java.util.stream.Collector<T,?,java.util.Optional<T>> first()
Get aCollector
that calculates theFIRST
function.Note that unlike in (Oracle) SQL, where the
FIRST
function is an ordered set aggregate function that produces a set of results, this collector just produces the first value in the order of stream traversal. For matching behaviour to Oracle's [ aggregate function ] KEEP (DENSE_RANK FIRST ORDER BY ... ), usemaxAll(Comparator)
instead.
-
last
public static <T> java.util.stream.Collector<T,?,java.util.Optional<T>> last()
Get aCollector
that calculates theLAST
function.Note that unlike in (Oracle) SQL, where the
FIRST
function is an ordered set aggregate function that produces a set of results, this collector just produces the first value in the order of stream traversal. For matching behaviour to Oracle's [ aggregate function ] KEEP (DENSE_RANK LAST ORDER BY ... ), useminAll(Comparator)
instead.
-
taking
public static <T> java.util.stream.Collector<T,?,Seq<T>> taking(long n)
Get aCollector
that takes the firstn
elements from a collection.
-
dropping
public static <T> java.util.stream.Collector<T,?,Seq<T>> dropping(long n)
Get aCollector
that skip the firstn
elements of a collection.
-
count
public static <T> java.util.stream.Collector<T,?,java.lang.Long> count()
Get aCollector
that calculates theCOUNT(*)
function.
-
countDistinct
public static <T> java.util.stream.Collector<T,?,java.lang.Long> countDistinct()
Get aCollector
that calculates theCOUNT (DISTINCT *)
function.
-
countDistinctBy
public static <T,U> java.util.stream.Collector<T,?,java.lang.Long> countDistinctBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theCOUNT (DISTINCT expr)
function.
-
sum
public static <T> java.util.stream.Collector<T,?,java.util.Optional<T>> sum()
Get aCollector
that calculates theSUM()
for any type ofNumber
.
-
sum
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<U>> sum(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theSUM()
for any type ofNumber
.
-
avg
public static <T> java.util.stream.Collector<T,?,java.util.Optional<T>> avg()
Get aCollector
that calculates theAVG()
for any type ofNumber
.
-
avg
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<U>> avg(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theAVG()
for any type ofNumber
.
-
min
public static <T extends java.lang.Comparable<? super T>> java.util.stream.Collector<T,?,java.util.Optional<T>> min()
Get aCollector
that calculates theMIN()
function.
-
min
public static <T> java.util.stream.Collector<T,?,java.util.Optional<T>> min(java.util.Comparator<? super T> comparator)
Get aCollector
that calculates theMIN()
function.
-
min
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,java.util.Optional<U>> min(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMIN()
function.
-
min
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<U>> min(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMIN()
function.
-
minBy
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,java.util.Optional<T>> minBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMIN()
function.
-
minBy
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<T>> minBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMIN()
function.
-
minAll
public static <T extends java.lang.Comparable<? super T>> java.util.stream.Collector<T,?,Seq<T>> minAll()
Get aCollector
that calculates theMIN()
function, producing multiple results.
-
minAll
public static <T> java.util.stream.Collector<T,?,Seq<T>> minAll(java.util.Comparator<? super T> comparator)
Get aCollector
that calculates theMIN()
function, producing multiple results.
-
minAll
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,Seq<U>> minAll(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMIN()
function, producing multiple results.
-
minAll
public static <T,U> java.util.stream.Collector<T,?,Seq<U>> minAll(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMIN()
function, producing multiple results.
-
minAllBy
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,Seq<T>> minAllBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMIN()
function, producing multiple results.
-
minAllBy
public static <T,U> java.util.stream.Collector<T,?,Seq<T>> minAllBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMIN()
function, producing multiple results.
-
max
public static <T extends java.lang.Comparable<? super T>> java.util.stream.Collector<T,?,java.util.Optional<T>> max()
Get aCollector
that calculates theMAX()
function.
-
max
public static <T> java.util.stream.Collector<T,?,java.util.Optional<T>> max(java.util.Comparator<? super T> comparator)
Get aCollector
that calculates theMAX()
function.
-
max
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,java.util.Optional<U>> max(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMAX()
function.
-
max
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<U>> max(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMAX()
function.
-
maxBy
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,java.util.Optional<T>> maxBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMAX()
function.
-
maxBy
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<T>> maxBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMAX()
function.
-
maxAll
public static <T extends java.lang.Comparable<? super T>> java.util.stream.Collector<T,?,Seq<T>> maxAll()
Get aCollector
that calculates theMAX()
function, producing multiple results.
-
maxAll
public static <T> java.util.stream.Collector<T,?,Seq<T>> maxAll(java.util.Comparator<? super T> comparator)
Get aCollector
that calculates theMAX()
function, producing multiple results.
-
maxAll
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,Seq<U>> maxAll(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMAX()
function, producing multiple results.
-
maxAll
public static <T,U> java.util.stream.Collector<T,?,Seq<U>> maxAll(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMAX()
function, producing multiple results.
-
maxAllBy
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,Seq<T>> maxAllBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMAX()
function, producing multiple results.
-
maxAllBy
public static <T,U> java.util.stream.Collector<T,?,Seq<T>> maxAllBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMAX()
function, producing multiple results.
-
allMatch
public static java.util.stream.Collector<java.lang.Boolean,?,java.lang.Boolean> allMatch()
Get aCollector
that calculates theALL()
function.
-
allMatch
public static <T> java.util.stream.Collector<T,?,java.lang.Boolean> allMatch(java.util.function.Predicate<? super T> predicate)
Get aCollector
that calculates theALL()
function.
-
anyMatch
public static java.util.stream.Collector<java.lang.Boolean,?,java.lang.Boolean> anyMatch()
Get aCollector
that calculates theANY()
function.
-
anyMatch
public static <T> java.util.stream.Collector<T,?,java.lang.Boolean> anyMatch(java.util.function.Predicate<? super T> predicate)
Get aCollector
that calculates theANY()
function.
-
noneMatch
public static java.util.stream.Collector<java.lang.Boolean,?,java.lang.Boolean> noneMatch()
Get aCollector
that calculates theNONE()
function.
-
noneMatch
public static <T> java.util.stream.Collector<T,?,java.lang.Boolean> noneMatch(java.util.function.Predicate<? super T> predicate)
Get aCollector
that calculates theNONE()
function.
-
bitAnd
public static <T> java.util.stream.Collector<T,?,java.util.Optional<T>> bitAnd()
Get aCollector
that calculatesBIT_AND()
for any type ofNumber
.
-
bitAnd
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<U>> bitAnd(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theBIT_AND()
for any type ofNumber
.
-
bitAndInt
public static <T> java.util.stream.Collector<T,?,java.lang.Integer> bitAndInt(java.util.function.ToIntFunction<? super T> function)
Get aCollector
that calculates theBIT_AND()
for any type ofNumber
.
-
bitAndLong
public static <T> java.util.stream.Collector<T,?,java.lang.Long> bitAndLong(java.util.function.ToLongFunction<? super T> function)
Get aCollector
that calculates theBIT_AND()
for any type ofNumber
.
-
bitOr
public static <T> java.util.stream.Collector<T,?,java.util.Optional<T>> bitOr()
Get aCollector
that calculatesBIT_OR()
for any type ofNumber
.
-
bitOr
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<U>> bitOr(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theBIT_OR()
for any type ofNumber
.
-
bitOrInt
public static <T> java.util.stream.Collector<T,?,java.lang.Integer> bitOrInt(java.util.function.ToIntFunction<? super T> function)
Get aCollector
that calculates theBIT_OR()
for any type ofNumber
.
-
bitOrLong
public static <T> java.util.stream.Collector<T,?,java.lang.Long> bitOrLong(java.util.function.ToLongFunction<? super T> function)
Get aCollector
that calculates theBIT_OR()
for any type ofNumber
.
-
mode
public static <T> java.util.stream.Collector<T,?,java.util.Optional<T>> mode()
Get aCollector
that calculates theMODE()
function.
-
modeAll
public static <T> java.util.stream.Collector<T,?,Seq<T>> modeAll()
Get aCollector
that calculates theMODE()
function.
-
mode0
private static <T,X> java.util.stream.Collector<T,?,X> mode0(java.util.function.Function<? super Seq<Tuple2<T,java.lang.Long>>,? extends X> transformer)
-
modeBy
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<T>> modeBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMODE()
function.
-
modeAllBy
public static <T,U> java.util.stream.Collector<T,?,Seq<T>> modeAllBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMODE()
function.
-
rank
public static <T extends java.lang.Comparable<? super T>> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>> rank(T value)
Get aCollector
that calculates theRANK()
function given natural ordering.
-
rank
public static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>> rank(T value, java.util.Comparator<? super T> comparator)
Get aCollector
that calculates theRANK()
function given a specific ordering.
-
rankBy
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>> rankBy(U value, java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates the derivedRANK()
function given natural ordering.
-
rankBy
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>> rankBy(U value, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates the derivedRANK()
function given a specific ordering.
-
denseRank
public static <T extends java.lang.Comparable<? super T>> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>> denseRank(T value)
Get aCollector
that calculates theDENSE_RANK()
function given natural ordering.
-
denseRank
public static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>> denseRank(T value, java.util.Comparator<? super T> comparator)
Get aCollector
that calculates theDENSE_RANK()
function given a specific ordering.
-
denseRankBy
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>> denseRankBy(U value, java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates the derivedDENSE_RANK()
function given natural ordering.
-
denseRankBy
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Long>> denseRankBy(U value, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates the derivedDENSE_RANK()
function given a specific ordering.
-
percentRank
public static <T extends java.lang.Comparable<? super T>> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> percentRank(T value)
Get aCollector
that calculates thePERCENT_RANK()
function given natural ordering.
-
percentRank
public static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> percentRank(T value, java.util.Comparator<? super T> comparator)
Get aCollector
that calculates thePERCENT_RANK()
function given a specific ordering.
-
percentRankBy
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> percentRankBy(U value, java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates the derivedPERCENT_RANK()
function given natural ordering.
-
percentRankBy
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> percentRankBy(U value, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates the derivedPERCENT_RANK()
function given a specific ordering.
-
median
public static <T extends java.lang.Comparable<? super T>> java.util.stream.Collector<T,?,java.util.Optional<T>> median()
Get aCollector
that calculates theMEDIAN()
function given natural ordering.
-
median
public static <T> java.util.stream.Collector<T,?,java.util.Optional<T>> median(java.util.Comparator<? super T> comparator)
Get aCollector
that calculates theMEDIAN()
function given a specific ordering.
-
median
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,java.util.Optional<U>> median(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates theMEDIAN()
function given a specific ordering.
-
median
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<U>> median(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates theMEDIAN()
function given a specific ordering.
-
medianBy
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,java.util.Optional<T>> medianBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates the derivedMEDIAN()
function given natural ordering.
-
medianBy
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<T>> medianBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates the derivedMEDIAN()
function given a specific ordering.
-
percentile
public static <T extends java.lang.Comparable<? super T>> java.util.stream.Collector<T,?,java.util.Optional<T>> percentile(double percentile)
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given natural ordering.
-
percentile
public static <T> java.util.stream.Collector<T,?,java.util.Optional<T>> percentile(double percentile, java.util.Comparator<? super T> comparator)
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given a specific ordering.
-
percentile
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,java.util.Optional<U>> percentile(double percentile, java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given a specific ordering.
-
percentile
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<U>> percentile(double percentile, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given a specific ordering.
-
percentileBy
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,java.util.Optional<T>> percentileBy(double percentile, java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates the derivedPERCENTILE_DISC(percentile)
function given natural ordering.
-
percentileBy
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<T>> percentileBy(double percentile, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates the derivedPERCENTILE_DISC(percentile)
function given a specific ordering.
-
percentileAll
public static <T extends java.lang.Comparable<? super T>> java.util.stream.Collector<T,?,Seq<T>> percentileAll(double percentile)
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given a specific ordering, producing multiple results.
-
percentileAll
public static <T> java.util.stream.Collector<T,?,Seq<T>> percentileAll(double percentile, java.util.Comparator<? super T> comparator)
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given a specific ordering, producing multiple results.
-
percentileAllBy
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,Seq<T>> percentileAllBy(double percentile, java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates the derivedPERCENTILE_DISC(percentile)
function given a specific ordering, producing multiple results.
-
percentileAllBy
public static <T,U> java.util.stream.Collector<T,?,Seq<T>> percentileAllBy(double percentile, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates the derivedPERCENTILE_DISC(percentile)
function given a specific ordering, producing multiple results.
-
percentileCollector
private static <T,U,R> java.util.stream.Collector<T,java.util.List<Tuple2<T,U>>,R> percentileCollector(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator, java.util.function.Supplier<R> onEmpty, java.util.function.Function<T,R> onSingle, java.util.function.Function<java.util.List<Tuple2<T,U>>,R> finisher)
-
percentileIndex
private static int percentileIndex(double percentile, int size)
-
medianAll
public static <T extends java.lang.Comparable<? super T>> java.util.stream.Collector<T,?,Seq<T>> medianAll()
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given a specific ordering, producing multiple results.
-
medianAll
public static <T> java.util.stream.Collector<T,?,Seq<T>> medianAll(java.util.Comparator<? super T> comparator)
Get aCollector
that calculates thePERCENTILE_DISC(percentile)
function given a specific ordering, producing multiple results.
-
medianAllBy
public static <T,U extends java.lang.Comparable<? super U>> java.util.stream.Collector<T,?,Seq<T>> medianAllBy(java.util.function.Function<? super T,? extends U> function)
Get aCollector
that calculates the derivedPERCENTILE_DISC(percentile)
function given a specific ordering, producing multiple results.
-
medianAllBy
public static <T,U> java.util.stream.Collector<T,?,Seq<T>> medianAllBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Get aCollector
that calculates the derivedMEDIAN()
function given natural ordering, producing multiple results.
-
stddevDouble
public static <T> java.util.stream.Collector<java.lang.Double,?,java.util.Optional<java.lang.Double>> stddevDouble()
Get aCollector
that calculates theSTDDEV_POP()
function.
-
stddevDouble
public static <T,U> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> stddevDouble(java.util.function.ToDoubleFunction<? super T> function)
Get aCollector
that calculates theSTDDEV_POP()
function.
-
varianceDouble
public static java.util.stream.Collector<java.lang.Double,?,java.util.Optional<java.lang.Double>> varianceDouble()
Get aCollector
that calculates theVAR_POP()
function.
-
varianceDouble
public static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> varianceDouble(java.util.function.ToDoubleFunction<? super T> function)
Get aCollector
that calculates theVAR_POP()
function.
-
variance0
private static <T> double variance0(java.util.List<T> l, java.util.function.ToDoubleFunction<? super T> function)
-
covarianceDouble
public static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>> covarianceDouble()
Get aCollector
that calculates theCOVAR_POP()
function.
-
covarianceDouble
public static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> covarianceDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theCOVAR_POP()
function.
-
covarianceFinisher
private static <T> java.util.function.Function<java.util.List<T>,java.util.Optional<java.lang.Double>> covarianceFinisher(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY, java.util.function.BiFunction<java.util.List<T>,java.util.function.ToDoubleFunction<? super T>,java.lang.Double> sumOrAvg)
-
correlationDouble
public static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>> correlationDouble()
Get aCollector
that calculates theCORR()
function.
-
correlationDouble
public static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> correlationDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theCORR()
function.
-
regrCount
public static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.lang.Long> regrCount()
Get aCollector
that calculates theREGR_COUNT()
function.
-
regrCount
public static <T> java.util.stream.Collector<T,?,java.lang.Long> regrCount(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_COUNT()
function.
-
regrAvgXDouble
public static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>> regrAvgXDouble()
Get aCollector
that calculates theREGR_AVGX()
function.
-
regrAvgXDouble
public static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> regrAvgXDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_AVGX()
function.
-
regrAvgYDouble
public static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>> regrAvgYDouble()
Get aCollector
that calculates theREGR_AVGY()
function.
-
regrAvgYDouble
public static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> regrAvgYDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_AVGY()
function.
-
regrSxxDouble
public static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>> regrSxxDouble()
Get aCollector
that calculates theREGR_SXX()
function.
-
regrSxxDouble
public static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> regrSxxDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_SXX()
function.
-
regrSxyDouble
public static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>> regrSxyDouble()
Get aCollector
that calculates theREGR_SXY()
function.
-
regrSxyDouble
public static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> regrSxyDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_SXY()
function.
-
regrSyyDouble
public static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>> regrSyyDouble()
Get aCollector
that calculates theREGR_SYY()
function.
-
regrSyyDouble
public static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> regrSyyDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_SYY()
function.
-
regrSlopeDouble
public static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>> regrSlopeDouble()
Get aCollector
that calculates theREGR_SLOPE()
function.
-
regrSlopeDouble
public static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> regrSlopeDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_SLOPE()
function.
-
regrInterceptDouble
public static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>> regrInterceptDouble()
Get aCollector
that calculates theREGR_INTERCEPT()
function.
-
regrInterceptDouble
public static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> regrInterceptDouble(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theREGR_INTERCEPT()
function.
-
regrR2Double
public static java.util.stream.Collector<Tuple2<java.lang.Double,java.lang.Double>,?,java.util.Optional<java.lang.Double>> regrR2Double()
Get aCollector
that calculates theregrR2Double()
function.
-
regrR2Double
public static <T> java.util.stream.Collector<T,?,java.util.Optional<java.lang.Double>> regrR2Double(java.util.function.ToDoubleFunction<? super T> functionX, java.util.function.ToDoubleFunction<? super T> functionY)
Get aCollector
that calculates theregrR2Double()
function.
-
sum0
private static <T> double sum0(java.util.List<T> list, java.util.function.ToDoubleFunction<? super T> function)
-
avg0
private static <T> double avg0(java.util.List<T> list, java.util.function.ToDoubleFunction<? super T> function)
-
commonPrefix
public static java.util.stream.Collector<java.lang.CharSequence,?,java.lang.String> commonPrefix()
Get aCollector
that calculates the common prefix of a set of strings.
-
commonSuffix
public static java.util.stream.Collector<java.lang.CharSequence,?,java.lang.String> commonSuffix()
Get aCollector
that calculates the common suffix of a set of strings.
-
mapAll
private static <T1,T2,R> java.util.Optional<R> mapAll(Tuple2<java.util.Optional<T1>,java.util.Optional<T2>> tuple, Function2<T1,T2,R> function)
-
-