public class Aggregates extends Object
| Modifier and Type | Method and Description |
|---|---|
static Aggregate<Map<String,Concept>,Optional<Double>> |
average(String varName)
Aggregate that finds average (mean) of a match query.
|
static Aggregate<Object,Long> |
count()
Aggregate that counts results of a match query.
|
static <T> Aggregate<Map<String,Concept>,Map<Concept,T>> |
group(String varName,
Aggregate<? super Map<String,Concept>,T> innerAggregate)
Aggregate that groups results of a match query by variable name, applying an aggregate to each group.
|
static <T> Aggregate<T,List<T>> |
list()
An aggregate that changes match query results into a list.
|
static Aggregate<Map<String,Concept>,Optional<?>> |
max(String varName)
Aggregate that finds maximum of a match query.
|
static Aggregate<Map<String,Concept>,Optional<Number>> |
median(String varName)
Aggregate that finds median of a match query.
|
static Aggregate<Map<String,Concept>,Optional<?>> |
min(String varName)
Aggregate that finds minimum of a match query.
|
static <S,T> Aggregate<S,Map<String,T>> |
select(<any> aggregates)
An aggregate that combines several aggregates together into a map (where keys are the names of the aggregates)
|
static Aggregate<Map<String,Concept>,Number> |
sum(String varName)
Aggregate that sums results of a match query.
|
public static Aggregate<Map<String,Concept>,Optional<Double>> average(String varName)
public static <T> Aggregate<Map<String,Concept>,Map<Concept,T>> group(String varName, Aggregate<? super Map<String,Concept>,T> innerAggregate)
T - the type of each grouppublic static <T> Aggregate<T,List<T>> list()
T - the type of the results of the match querypublic static Aggregate<Map<String,Concept>,Optional<?>> max(String varName)
public static Aggregate<Map<String,Concept>,Optional<Number>> median(String varName)
public static Aggregate<Map<String,Concept>,Optional<?>> min(String varName)
public static <S,T> Aggregate<S,Map<String,T>> select(<any> aggregates)
S - the type of the match query resultsT - the type of the aggregate resultsCopyright © 2016. All rights reserved.