Package org.apache.calcite.tools
Interface RelBuilder.AggCall
-
- All Known Implementing Classes:
RelBuilder.AggCallImpl
,RelBuilder.AggCallImpl2
- Enclosing class:
- RelBuilder
public static interface RelBuilder.AggCall
Information necessary to create a call to an aggregate function.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RelBuilder.AggCall
approximate(boolean approximate)
Returns a copy of this AggCall that may return approximate results ifapproximate
is true.RelBuilder.AggCall
as(java.lang.String alias)
Returns a copy of this AggCall with a given alias.RelBuilder.AggCall
distinct()
Returns a copy of this AggCall that is distinct.RelBuilder.AggCall
distinct(boolean distinct)
Returns a copy of this AggCall that is optionally distinct.RelBuilder.AggCall
filter(RexNode condition)
Returns a copy of this AggCall that applies a filter before aggregating values.RelBuilder.AggCall
sort(java.lang.Iterable<RexNode> orderKeys)
Returns a copy of this AggCall that sorts its input values byorderKeys
before aggregating, as in SQL'sWITHIN GROUP
clause.RelBuilder.AggCall
sort(RexNode... orderKeys)
Returns a copy of this AggCall that sorts its input values byorderKeys
before aggregating, as in SQL'sWITHIN GROUP
clause.
-
-
-
Method Detail
-
filter
RelBuilder.AggCall filter(RexNode condition)
Returns a copy of this AggCall that applies a filter before aggregating values.
-
sort
RelBuilder.AggCall sort(java.lang.Iterable<RexNode> orderKeys)
Returns a copy of this AggCall that sorts its input values byorderKeys
before aggregating, as in SQL'sWITHIN GROUP
clause.
-
sort
RelBuilder.AggCall sort(RexNode... orderKeys)
Returns a copy of this AggCall that sorts its input values byorderKeys
before aggregating, as in SQL'sWITHIN GROUP
clause.
-
approximate
RelBuilder.AggCall approximate(boolean approximate)
Returns a copy of this AggCall that may return approximate results ifapproximate
is true.
-
as
RelBuilder.AggCall as(java.lang.String alias)
Returns a copy of this AggCall with a given alias.
-
distinct
RelBuilder.AggCall distinct(boolean distinct)
Returns a copy of this AggCall that is optionally distinct.
-
distinct
RelBuilder.AggCall distinct()
Returns a copy of this AggCall that is distinct.
-
-