| Package | Description |
|---|---|
| ai.grakn.graql |
A collection of interfaces and factories for executing Graql queries.
|
| ai.grakn.graql.internal.parser | |
| ai.grakn.graql.internal.query | |
| ai.grakn.graql.internal.query.aggregate |
| Modifier and Type | Method and Description |
|---|---|
static Aggregate<Object,Long> |
Graql.count()
Create an aggregate that will count the results of a query.
|
Aggregate<T,S> |
NamedAggregate.getAggregate()
Get the aggregate this named aggregate represents.
|
static Aggregate<Answer,Map<Concept,List<Answer>>> |
Graql.group(String var)
Create an aggregate that will group a query by a variable.
|
static <T> Aggregate<Answer,Map<Concept,T>> |
Graql.group(String var,
Aggregate<? super Answer,T> aggregate)
Create an aggregate that will group a query by a variable and apply the given aggregate to each group
|
static <T extends Comparable<T>> |
Graql.max(String var)
Create an aggregate that will find the maximum of a variable's values.
|
static Aggregate<Answer,Optional<Double>> |
Graql.mean(String var)
Create an aggregate that will find the mean of a variable's values.
|
static Aggregate<Answer,Optional<Number>> |
Graql.median(String var)
Create an aggregate that will find the median of a variable's values.
|
static <T extends Comparable<T>> |
Graql.min(String var)
Create an aggregate that will find the minimum of a variable's values.
|
static <S,T> Aggregate<S,Map<String,T>> |
Graql.select(NamedAggregate<? super S,? extends T>... aggregates)
Create an aggregate that will collect together several named aggregates into a map.
|
static <S,T> Aggregate<S,Map<String,T>> |
Graql.select(Set<NamedAggregate<? super S,? extends T>> aggregates)
Create an aggregate that will collect together several named aggregates into a map.
|
static Aggregate<Answer,Optional<Double>> |
Graql.std(String var)
Create an aggregate that will find the unbiased sample standard deviation of a variable's values.
|
static Aggregate<Answer,Number> |
Graql.sum(String var)
Create an aggregate that will sum the values of a variable.
|
| Modifier and Type | Method and Description |
|---|---|
<S> AggregateQuery<S> |
MatchQuery.aggregate(Aggregate<? super Answer,S> aggregate)
Aggregate results of a query.
|
static <T> Aggregate<Answer,Map<Concept,T>> |
Graql.group(String var,
Aggregate<? super Answer,T> aggregate)
Create an aggregate that will group a query by a variable and apply the given aggregate to each group
|
| Modifier and Type | Method and Description |
|---|---|
void |
QueryBuilder.registerAggregate(String name,
java.util.function.Function<List<Object>,Aggregate> aggregateMethod)
Register an aggregate that can be used when parsing a Graql query
|
| Modifier and Type | Method and Description |
|---|---|
void |
QueryParser.registerAggregate(String name,
java.util.function.Function<List<Object>,Aggregate> aggregateMethod) |
| Modifier and Type | Method and Description |
|---|---|
static <T> AggregateQuery<T> |
Queries.aggregate(MatchQueryAdmin matchQuery,
Aggregate<? super Answer,T> aggregate) |
| Modifier and Type | Method and Description |
|---|---|
void |
QueryBuilderImpl.registerAggregate(String name,
java.util.function.Function<List<Object>,Aggregate> aggregateMethod) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractAggregate<T,S>
Abstract implementation of an
Aggregate, providing an implementation of the as(String)}
method. |
| Modifier and Type | Method and Description |
|---|---|
static Aggregate<Object,Long> |
Aggregates.count()
Aggregate that counts results of a match query.
|
static Aggregate<Answer,Map<Concept,List<Answer>>> |
Aggregates.group(Var varName)
Aggregate that groups results of a match query by variable name
|
static <T> Aggregate<Answer,Map<Concept,T>> |
Aggregates.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>> |
Aggregates.list()
An aggregate that changes match query results into a list.
|
static <T extends Comparable<T>> |
Aggregates.max(Var varName)
Aggregate that finds maximum of a match query.
|
static Aggregate<Answer,Optional<Double>> |
Aggregates.mean(Var varName)
Aggregate that finds mean of a match query.
|
static Aggregate<Answer,Optional<Number>> |
Aggregates.median(Var varName)
Aggregate that finds median of a match query.
|
static <T extends Comparable<T>> |
Aggregates.min(Var varName)
Aggregate that finds minimum of a match query.
|
static <S,T> Aggregate<S,Map<String,T>> |
Aggregates.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>> |
Aggregates.std(Var varName)
Aggregate that finds the unbiased sample standard deviation of a match query
|
static Aggregate<Answer,Number> |
Aggregates.sum(Var varName)
Aggregate that sums results of a match query.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Aggregate<Answer,Map<Concept,T>> |
Aggregates.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.
|
Copyright © 2017 Grakn Labs Ltd. All rights reserved.