Package ai.vespa.client.dsl
Class G
- java.lang.Object
-
- ai.vespa.client.dsl.G
-
public final class G extends Object
Helper class for generating group syntax https://docs.vespa.ai/en/reference/grouping-syntax.html basically the syntax is exactly the same as Vespa group syntax. The only exception "max" in the Vespa group syntax which represents 'max returned documents', is replaced by "maxRtn" in the dsl lib.
-
-
Constructor Summary
Constructors Constructor Description G()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Group
all(IGroupOperation... ops)
static Aggregator
count()
static Group
each(IGroupOperation... ops)
static GroupOperation
group(String expr)
static Aggregator
max(int max)
static GroupOperation
maxRtn(int max)
static GroupOperation
order(String expr)
static GroupOperation
output(Aggregator... aggrs)
static Aggregator
summary()
static Aggregator
summary(String summaryClass)
-
-
-
Method Detail
-
all
public static Group all(IGroupOperation... ops)
-
each
public static Group each(IGroupOperation... ops)
-
group
public static GroupOperation group(String expr)
-
maxRtn
public static GroupOperation maxRtn(int max)
-
order
public static GroupOperation order(String expr)
-
output
public static GroupOperation output(Aggregator... aggrs)
-
max
public static Aggregator max(int max)
-
summary
public static Aggregator summary()
-
count
public static Aggregator count()
-
summary
public static Aggregator summary(String summaryClass)
-
-