| Modifier and Type | Method and Description |
|---|---|
static Aggregate<Object,Long> |
count()
Aggregate that counts results of a match query.
|
static Aggregate<Answer,Map<Concept,List<Answer>>> |
group(Var varName)
Aggregate that groups results of a match query by variable name
|
static <T> Aggregate<Answer,Map<Concept,T>> |
group(Var varName,
Aggregate<? super Answer,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 <T extends Comparable<T>> |
max(Var varName)
Aggregate that finds maximum of a match query.
|
static Aggregate<Answer,Optional<Double>> |
mean(Var varName)
Aggregate that finds mean of a match query.
|
static Aggregate<Answer,Optional<Number>> |
median(Var varName)
Aggregate that finds median of a match query.
|
static <T extends Comparable<T>> |
min(Var varName)
Aggregate that finds minimum of a match query.
|
static <S,T> Aggregate<S,Map<String,T>> |
select(com.google.common.collect.ImmutableSet<NamedAggregate<? super S,? extends T>> aggregates)
An aggregate that combines several aggregates together into a map (where keys are the names of the aggregates)
|
static Aggregate<Answer,Optional<Double>> |
std(Var varName)
Aggregate that finds the unbiased sample standard deviation of a match query
|
static Aggregate<Answer,Number> |
sum(Var varName)
Aggregate that sums results of a match query.
|
public static Aggregate<Answer,Optional<Double>> mean(Var varName)
public static Aggregate<Answer,Map<Concept,List<Answer>>> group(Var varName)
varName - the variable name to group results bypublic static <T> Aggregate<Answer,Map<Concept,T>> group(Var varName, Aggregate<? super Answer,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 <T extends Comparable<T>> Aggregate<Answer,Optional<T>> max(Var varName)
public static Aggregate<Answer,Optional<Number>> median(Var varName)
public static Aggregate<Answer,Optional<Double>> std(Var varName)
public static <T extends Comparable<T>> Aggregate<Answer,Optional<T>> min(Var varName)
public static <S,T> Aggregate<S,Map<String,T>> select(com.google.common.collect.ImmutableSet<NamedAggregate<? super S,? extends T>> aggregates)
S - the type of the match query resultsT - the type of the aggregate resultsCopyright © 2017 Grakn Labs Ltd. All rights reserved.