| Package | Description |
|---|---|
| io.mindmaps.graql | |
| io.mindmaps.graql.internal.parser | |
| io.mindmaps.graql.internal.query | |
| io.mindmaps.graql.internal.query.aggregate | |
| io.mindmaps.graql.internal.query.match |
| Modifier and Type | Method and Description |
|---|---|
static Aggregate<Map<String,Concept>,Optional<Double>> |
Graql.average(String varName)
Create an aggregate that will find the mean of a variable's values.
|
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<Map<String,Concept>,Map<Concept,List<Map<String,Concept>>>> |
Graql.group(String varName)
Create an aggregate that will group a query by a variable name.
|
static <T> Aggregate<Map<String,Concept>,Map<Concept,T>> |
Graql.group(String varName,
Aggregate<? super Map<String,Concept>,T> aggregate)
Create an aggregate that will group a query by a variable name and apply the given aggregate to each group
|
static Aggregate<Map<String,Concept>,Optional<?>> |
Graql.max(String varName)
Create an aggregate that will find the maximum of a variable's values.
|
static Aggregate<Map<String,Concept>,Optional<Number>> |
Graql.median(String varName)
Create an aggregate that will find the median of a variable's values.
|
static Aggregate<Map<String,Concept>,Optional<?>> |
Graql.min(String varName)
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<Map<String,Concept>,Number> |
Graql.sum(String varName)
Create an aggregate that will sum the values of a variable.
|
| Modifier and Type | Method and Description |
|---|---|
<S> AggregateQuery<S> |
MatchQuery.aggregate(Aggregate<? super Map<String,Concept>,S> aggregate)
Aggregate results of a query.
|
static <T> Aggregate<Map<String,Concept>,Map<Concept,T>> |
Graql.group(String varName,
Aggregate<? super Map<String,Concept>,T> aggregate)
Create an aggregate that will group a query by a variable name 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) |
| 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 Map<String,Concept>,T> aggregate) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractAggregate<T,S> |
| Modifier and Type | Method and Description |
|---|---|
static Aggregate<Map<String,Concept>,Optional<Double>> |
Aggregates.average(String varName)
Aggregate that finds average (mean) of a match query.
|
static Aggregate<Object,Long> |
Aggregates.count()
Aggregate that counts results of a match query.
|
static <T> Aggregate<Map<String,Concept>,Map<Concept,T>> |
Aggregates.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>> |
Aggregates.list()
An aggregate that changes match query results into a list.
|
static Aggregate<Map<String,Concept>,Optional<?>> |
Aggregates.max(String varName)
Aggregate that finds maximum of a match query.
|
static Aggregate<Map<String,Concept>,Optional<Number>> |
Aggregates.median(String varName)
Aggregate that finds median of a match query.
|
static Aggregate<Map<String,Concept>,Optional<?>> |
Aggregates.min(String varName)
Aggregate that finds minimum of a match query.
|
static <S,T> Aggregate<S,Map<String,T>> |
Aggregates.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> |
Aggregates.sum(String varName)
Aggregate that sums results of a match query.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Aggregate<Map<String,Concept>,Map<Concept,T>> |
Aggregates.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.
|
| Modifier and Type | Method and Description |
|---|---|
default <S> AggregateQuery<S> |
MatchQueryInternal.aggregate(Aggregate<? super Map<String,Concept>,S> aggregate) |
Copyright © 2016. All rights reserved.