Constructor and Description |
---|
Agg() |
Modifier and Type | Method and Description |
---|---|
static java.util.stream.Collector<Boolean,?,Boolean> |
allMatch()
Get a
Collector that calculates the ALL() function. |
static <T> java.util.stream.Collector<T,?,Boolean> |
allMatch(java.util.function.Predicate<? super T> predicate)
Get a
Collector that calculates the ALL() function. |
static java.util.stream.Collector<Boolean,?,Boolean> |
anyMatch()
Get a
Collector that calculates the ANY() function. |
static <T> java.util.stream.Collector<T,?,Boolean> |
anyMatch(java.util.function.Predicate<? super T> predicate)
Get a
Collector that calculates the ANY() function. |
static <T> java.util.stream.Collector<T,?,Optional<T>> |
avg()
|
static <T,U> java.util.stream.Collector<T,?,Optional<U>> |
avg(java.util.function.Function<? super T,? extends U> function)
|
static <T> java.util.stream.Collector<T,?,Long> |
count()
Get a
Collector that calculates the COUNT(*)
function. |
static <T> java.util.stream.Collector<T,?,Long> |
countDistinct()
Get a
Collector that calculates the
COUNT (DISTINCT *) function. |
static <T,U> java.util.stream.Collector<T,?,Long> |
countDistinctBy(java.util.function.Function<? super T,? extends U> function)
Get a
Collector that calculates the
COUNT (DISTINCT expr) function. |
static <T extends Comparable<? super T>> |
denseRank(T value)
Get a
Collector that calculates the DENSE_RANK() function given natural ordering. |
static <T> java.util.stream.Collector<T,?,Optional<Long>> |
denseRank(T value,
Comparator<? super T> comparator)
Get a
Collector that calculates the DENSE_RANK() function given a specific ordering. |
static <T,U extends Comparable<? super U>> |
denseRankBy(U value,
java.util.function.Function<? super T,? extends U> function)
Get a
Collector that calculates the derived DENSE_RANK() function given natural ordering. |
static <T,U> java.util.stream.Collector<T,?,Optional<Long>> |
denseRankBy(U value,
java.util.function.Function<? super T,? extends U> function,
Comparator<? super U> comparator)
Get a
Collector that calculates the derived DENSE_RANK() function given a specific ordering. |
static <T extends Comparable<? super T>> |
max()
Get a
Collector that calculates the MAX() function. |
static <T> java.util.stream.Collector<T,?,Optional<T>> |
max(Comparator<? super T> comparator)
Get a
Collector that calculates the MAX() function. |
static <T,U extends Comparable<? super U>> |
max(java.util.function.Function<? super T,? extends U> function)
Get a
Collector that calculates the MAX() function. |
static <T,U> java.util.stream.Collector<T,?,Optional<U>> |
max(java.util.function.Function<? super T,? extends U> function,
Comparator<? super U> comparator)
Get a
Collector that calculates the MAX() function. |
static <T,U extends Comparable<? super U>> |
maxBy(java.util.function.Function<? super T,? extends U> function)
Get a
Collector that calculates the MAX() function. |
static <T,U> java.util.stream.Collector<T,?,Optional<T>> |
maxBy(java.util.function.Function<? super T,? extends U> function,
Comparator<? super U> comparator)
Get a
Collector that calculates the MIN() function. |
static <T extends Comparable<? super T>> |
median()
Get a
Collector that calculates the MEDIAN() function given natural ordering. |
static <T> java.util.stream.Collector<T,?,Optional<T>> |
median(Comparator<? super T> comparator)
Get a
Collector that calculates the MEDIAN() function given a specific ordering. |
static <T,U extends Comparable<? super U>> |
median(java.util.function.Function<? super T,? extends U> function)
Get a
Collector that calculates the MEDIAN() function given a specific ordering. |
static <T,U> java.util.stream.Collector<T,?,Optional<U>> |
median(java.util.function.Function<? super T,? extends U> function,
Comparator<? super U> comparator)
Get a
Collector that calculates the MEDIAN() function given a specific ordering. |
static <T,U extends Comparable<? super U>> |
medianBy(java.util.function.Function<? super T,? extends U> function)
Get a
Collector that calculates the derived MEDIAN() function given natural ordering. |
static <T,U> java.util.stream.Collector<T,?,Optional<T>> |
medianBy(java.util.function.Function<? super T,? extends U> function,
Comparator<? super U> comparator)
Get a
Collector that calculates the derived MEDIAN() function given a specific ordering. |
static <T extends Comparable<? super T>> |
min()
Get a
Collector that calculates the MIN() function. |
static <T> java.util.stream.Collector<T,?,Optional<T>> |
min(Comparator<? super T> comparator)
Get a
Collector that calculates the MIN() function. |
static <T,U extends Comparable<? super U>> |
min(java.util.function.Function<? super T,? extends U> function)
Get a
Collector that calculates the MIN() function. |
static <T,U> java.util.stream.Collector<T,?,Optional<U>> |
min(java.util.function.Function<? super T,? extends U> function,
Comparator<? super U> comparator)
Get a
Collector that calculates the MIN() function. |
static <T,U extends Comparable<? super U>> |
minBy(java.util.function.Function<? super T,? extends U> function)
Get a
Collector that calculates the MIN() function. |
static <T,U> java.util.stream.Collector<T,?,Optional<T>> |
minBy(java.util.function.Function<? super T,? extends U> function,
Comparator<? super U> comparator)
Get a
Collector that calculates the MIN() function. |
static <T> java.util.stream.Collector<T,?,Optional<T>> |
mode()
Get a
Collector that calculates the MODE() function. |
static java.util.stream.Collector<Boolean,?,Boolean> |
noneMatch()
Get a
Collector that calculates the NONE() function. |
static <T> java.util.stream.Collector<T,?,Boolean> |
noneMatch(java.util.function.Predicate<? super T> predicate)
Get a
Collector that calculates the NONE() function. |
static <T extends Comparable<? super T>> |
percentile(double percentile)
Get a
Collector that calculates the PERCENTILE_DISC(percentile) function given natural ordering. |
static <T> java.util.stream.Collector<T,?,Optional<T>> |
percentile(double percentile,
Comparator<? super T> comparator)
Get a
Collector that calculates the PERCENTILE_DISC(percentile) function given a specific ordering. |
static <T,U extends Comparable<? super U>> |
percentile(double percentile,
java.util.function.Function<? super T,? extends U> function)
Get a
Collector that calculates the PERCENTILE_DISC(percentile) function given a specific ordering. |
static <T,U> java.util.stream.Collector<T,?,Optional<U>> |
percentile(double percentile,
java.util.function.Function<? super T,? extends U> function,
Comparator<? super U> comparator)
Get a
Collector that calculates the PERCENTILE_DISC(percentile) function given a specific ordering. |
static <T,U extends Comparable<? super U>> |
percentileBy(double percentile,
java.util.function.Function<? super T,? extends U> function)
Get a
Collector that calculates the derived PERCENTILE_DISC(percentile) function given natural ordering. |
static <T,U> java.util.stream.Collector<T,?,Optional<T>> |
percentileBy(double percentile,
java.util.function.Function<? super T,? extends U> function,
Comparator<? super U> comparator)
Get a
Collector that calculates the derived PERCENTILE_DISC(percentile) function given a specific ordering. |
static <T extends Comparable<? super T>> |
percentRank(T value)
Get a
Collector that calculates the PERCENT_RANK() function given natural ordering. |
static <T> java.util.stream.Collector<T,?,Optional<Double>> |
percentRank(T value,
Comparator<? super T> comparator)
Get a
Collector that calculates the PERCENT_RANK() function given a specific ordering. |
static <T,U extends Comparable<? super U>> |
percentRankBy(U value,
java.util.function.Function<? super T,? extends U> function)
Get a
Collector that calculates the derived PERCENT_RANK() function given natural ordering. |
static <T,U> java.util.stream.Collector<T,?,Optional<Double>> |
percentRankBy(U value,
java.util.function.Function<? super T,? extends U> function,
Comparator<? super U> comparator)
Get a
Collector that calculates the derived PERCENT_RANK() function given a specific ordering. |
static <T extends Comparable<? super T>> |
rank(T value)
Get a
Collector that calculates the RANK() function given natural ordering. |
static <T> java.util.stream.Collector<T,?,Optional<Long>> |
rank(T value,
Comparator<? super T> comparator)
Get a
Collector that calculates the RANK() function given a specific ordering. |
static <T,U extends Comparable<? super U>> |
rankBy(U value,
java.util.function.Function<? super T,? extends U> function)
Get a
Collector that calculates the derived RANK() function given natural ordering. |
static <T,U> java.util.stream.Collector<T,?,Optional<Long>> |
rankBy(U value,
java.util.function.Function<? super T,? extends U> function,
Comparator<? super U> comparator)
Get a
Collector that calculates the derived RANK() function given a specific ordering. |
static <T> java.util.stream.Collector<T,?,Optional<T>> |
sum()
|
static <T,U> java.util.stream.Collector<T,?,Optional<U>> |
sum(java.util.function.Function<? super T,? extends U> function)
|
public static <T> java.util.stream.Collector<T,?,Long> count()
Collector
that calculates the COUNT(*)
function.public static <T> java.util.stream.Collector<T,?,Long> countDistinct()
Collector
that calculates the
COUNT (DISTINCT *)
function.public static <T,U> java.util.stream.Collector<T,?,Long> countDistinctBy(java.util.function.Function<? super T,? extends U> function)
Collector
that calculates the
COUNT (DISTINCT expr)
function.public static <T> java.util.stream.Collector<T,?,Optional<T>> sum()
public static <T,U> java.util.stream.Collector<T,?,Optional<U>> sum(java.util.function.Function<? super T,? extends U> function)
public static <T> java.util.stream.Collector<T,?,Optional<T>> avg()
public static <T,U> java.util.stream.Collector<T,?,Optional<U>> avg(java.util.function.Function<? super T,? extends U> function)
public static <T extends Comparable<? super T>> java.util.stream.Collector<T,?,Optional<T>> min()
Collector
that calculates the MIN()
function.public static <T> java.util.stream.Collector<T,?,Optional<T>> min(Comparator<? super T> comparator)
Collector
that calculates the MIN()
function.public static <T,U extends Comparable<? super U>> java.util.stream.Collector<T,?,Optional<U>> min(java.util.function.Function<? super T,? extends U> function)
Collector
that calculates the MIN()
function.public static <T,U> java.util.stream.Collector<T,?,Optional<U>> min(java.util.function.Function<? super T,? extends U> function, Comparator<? super U> comparator)
Collector
that calculates the MIN()
function.public static <T,U extends Comparable<? super U>> java.util.stream.Collector<T,?,Optional<T>> minBy(java.util.function.Function<? super T,? extends U> function)
Collector
that calculates the MIN()
function.public static <T,U> java.util.stream.Collector<T,?,Optional<T>> minBy(java.util.function.Function<? super T,? extends U> function, Comparator<? super U> comparator)
Collector
that calculates the MIN()
function.public static <T extends Comparable<? super T>> java.util.stream.Collector<T,?,Optional<T>> max()
Collector
that calculates the MAX()
function.public static <T> java.util.stream.Collector<T,?,Optional<T>> max(Comparator<? super T> comparator)
Collector
that calculates the MAX()
function.public static <T,U extends Comparable<? super U>> java.util.stream.Collector<T,?,Optional<U>> max(java.util.function.Function<? super T,? extends U> function)
Collector
that calculates the MAX()
function.public static <T,U> java.util.stream.Collector<T,?,Optional<U>> max(java.util.function.Function<? super T,? extends U> function, Comparator<? super U> comparator)
Collector
that calculates the MAX()
function.public static <T,U extends Comparable<? super U>> java.util.stream.Collector<T,?,Optional<T>> maxBy(java.util.function.Function<? super T,? extends U> function)
Collector
that calculates the MAX()
function.public static <T,U> java.util.stream.Collector<T,?,Optional<T>> maxBy(java.util.function.Function<? super T,? extends U> function, Comparator<? super U> comparator)
Collector
that calculates the MIN()
function.public static java.util.stream.Collector<Boolean,?,Boolean> allMatch()
Collector
that calculates the ALL()
function.public static <T> java.util.stream.Collector<T,?,Boolean> allMatch(java.util.function.Predicate<? super T> predicate)
Collector
that calculates the ALL()
function.public static java.util.stream.Collector<Boolean,?,Boolean> anyMatch()
Collector
that calculates the ANY()
function.public static <T> java.util.stream.Collector<T,?,Boolean> anyMatch(java.util.function.Predicate<? super T> predicate)
Collector
that calculates the ANY()
function.public static java.util.stream.Collector<Boolean,?,Boolean> noneMatch()
Collector
that calculates the NONE()
function.public static <T> java.util.stream.Collector<T,?,Boolean> noneMatch(java.util.function.Predicate<? super T> predicate)
Collector
that calculates the NONE()
function.public static <T> java.util.stream.Collector<T,?,Optional<T>> mode()
Collector
that calculates the MODE()
function.public static <T extends Comparable<? super T>> java.util.stream.Collector<T,?,Optional<Long>> rank(T value)
Collector
that calculates the RANK()
function given natural ordering.public static <T> java.util.stream.Collector<T,?,Optional<Long>> rank(T value, Comparator<? super T> comparator)
Collector
that calculates the RANK()
function given a specific ordering.public static <T,U extends Comparable<? super U>> java.util.stream.Collector<T,?,Optional<Long>> rankBy(U value, java.util.function.Function<? super T,? extends U> function)
Collector
that calculates the derived RANK()
function given natural ordering.public static <T,U> java.util.stream.Collector<T,?,Optional<Long>> rankBy(U value, java.util.function.Function<? super T,? extends U> function, Comparator<? super U> comparator)
Collector
that calculates the derived RANK()
function given a specific ordering.public static <T extends Comparable<? super T>> java.util.stream.Collector<T,?,Optional<Long>> denseRank(T value)
Collector
that calculates the DENSE_RANK()
function given natural ordering.public static <T> java.util.stream.Collector<T,?,Optional<Long>> denseRank(T value, Comparator<? super T> comparator)
Collector
that calculates the DENSE_RANK()
function given a specific ordering.public static <T,U extends Comparable<? super U>> java.util.stream.Collector<T,?,Optional<Long>> denseRankBy(U value, java.util.function.Function<? super T,? extends U> function)
Collector
that calculates the derived DENSE_RANK()
function given natural ordering.public static <T,U> java.util.stream.Collector<T,?,Optional<Long>> denseRankBy(U value, java.util.function.Function<? super T,? extends U> function, Comparator<? super U> comparator)
Collector
that calculates the derived DENSE_RANK()
function given a specific ordering.public static <T extends Comparable<? super T>> java.util.stream.Collector<T,?,Optional<Double>> percentRank(T value)
Collector
that calculates the PERCENT_RANK()
function given natural ordering.public static <T> java.util.stream.Collector<T,?,Optional<Double>> percentRank(T value, Comparator<? super T> comparator)
Collector
that calculates the PERCENT_RANK()
function given a specific ordering.public static <T,U extends Comparable<? super U>> java.util.stream.Collector<T,?,Optional<Double>> percentRankBy(U value, java.util.function.Function<? super T,? extends U> function)
Collector
that calculates the derived PERCENT_RANK()
function given natural ordering.public static <T,U> java.util.stream.Collector<T,?,Optional<Double>> percentRankBy(U value, java.util.function.Function<? super T,? extends U> function, Comparator<? super U> comparator)
Collector
that calculates the derived PERCENT_RANK()
function given a specific ordering.public static <T extends Comparable<? super T>> java.util.stream.Collector<T,?,Optional<T>> median()
Collector
that calculates the MEDIAN()
function given natural ordering.public static <T> java.util.stream.Collector<T,?,Optional<T>> median(Comparator<? super T> comparator)
Collector
that calculates the MEDIAN()
function given a specific ordering.public static <T,U extends Comparable<? super U>> java.util.stream.Collector<T,?,Optional<U>> median(java.util.function.Function<? super T,? extends U> function)
Collector
that calculates the MEDIAN()
function given a specific ordering.public static <T,U> java.util.stream.Collector<T,?,Optional<U>> median(java.util.function.Function<? super T,? extends U> function, Comparator<? super U> comparator)
Collector
that calculates the MEDIAN()
function given a specific ordering.public static <T,U extends Comparable<? super U>> java.util.stream.Collector<T,?,Optional<T>> medianBy(java.util.function.Function<? super T,? extends U> function)
Collector
that calculates the derived MEDIAN()
function given natural ordering.public static <T,U> java.util.stream.Collector<T,?,Optional<T>> medianBy(java.util.function.Function<? super T,? extends U> function, Comparator<? super U> comparator)
Collector
that calculates the derived MEDIAN()
function given a specific ordering.public static <T extends Comparable<? super T>> java.util.stream.Collector<T,?,Optional<T>> percentile(double percentile)
Collector
that calculates the PERCENTILE_DISC(percentile)
function given natural ordering.public static <T> java.util.stream.Collector<T,?,Optional<T>> percentile(double percentile, Comparator<? super T> comparator)
Collector
that calculates the PERCENTILE_DISC(percentile)
function given a specific ordering.public static <T,U extends Comparable<? super U>> java.util.stream.Collector<T,?,Optional<U>> percentile(double percentile, java.util.function.Function<? super T,? extends U> function)
Collector
that calculates the PERCENTILE_DISC(percentile)
function given a specific ordering.public static <T,U> java.util.stream.Collector<T,?,Optional<U>> percentile(double percentile, java.util.function.Function<? super T,? extends U> function, Comparator<? super U> comparator)
Collector
that calculates the PERCENTILE_DISC(percentile)
function given a specific ordering.public static <T,U extends Comparable<? super U>> java.util.stream.Collector<T,?,Optional<T>> percentileBy(double percentile, java.util.function.Function<? super T,? extends U> function)
Collector
that calculates the derived PERCENTILE_DISC(percentile)
function given natural ordering.public static <T,U> java.util.stream.Collector<T,?,Optional<T>> percentileBy(double percentile, java.util.function.Function<? super T,? extends U> function, Comparator<? super U> comparator)
Collector
that calculates the derived PERCENTILE_DISC(percentile)
function given a specific ordering.Copyright © 2016. All Rights Reserved.