Uses of Class
org.apache.calcite.sql.SqlAggFunction
-
Packages that use SqlAggFunction Package Description org.apache.calcite.adapter.enumerable Query optimizer rules for Java calling convention.org.apache.calcite.adapter.jdbc Query provider based on a JDBC data source.org.apache.calcite.adapter.mongodb Query provider based on a MongoDB database.org.apache.calcite.materialize Management of materialized query results.org.apache.calcite.plan Defines interfaces for constructing rule-based optimizers of relational expressions.org.apache.calcite.rel.core Defines core relational expressions.org.apache.calcite.rel.externalize Facilities to externalizeRelNode
s to and from XML and JSON format.org.apache.calcite.rel.rel2sql Translates a relational expression to SQL parse tree.org.apache.calcite.rel.rules Provides a core set of planner rules.org.apache.calcite.rex Provides a language for representing row-expressions.org.apache.calcite.sql Provides a SQL parser and object model.org.apache.calcite.sql.fun Defines the set of standard SQL row-level functions and operators.org.apache.calcite.sql.validate SQL validation.org.apache.calcite.sql2rel Translates a SQL parse tree to relational expression.org.apache.calcite.tools Provides utility classes. -
-
Uses of SqlAggFunction in org.apache.calcite.adapter.enumerable
Fields in org.apache.calcite.adapter.enumerable with type parameters of type SqlAggFunction Modifier and Type Field Description private java.util.Map<SqlAggFunction,java.util.function.Supplier<? extends AggImplementor>>
RexImpTable. aggMap
private java.util.Map<SqlAggFunction,java.util.function.Supplier<? extends WinAggImplementor>>
RexImpTable. winAggMap
Methods in org.apache.calcite.adapter.enumerable that return SqlAggFunction Modifier and Type Method Description SqlAggFunction
AggContext. aggregation()
Returns the aggregation being implemented.SqlAggFunction
EnumerableAggregate.AggContextImpl. aggregation()
Methods in org.apache.calcite.adapter.enumerable with parameters of type SqlAggFunction Modifier and Type Method Description AggImplementor
RexImpTable. get(SqlAggFunction aggregation, boolean forWindowAggregate)
-
Uses of SqlAggFunction in org.apache.calcite.adapter.jdbc
Methods in org.apache.calcite.adapter.jdbc with parameters of type SqlAggFunction Modifier and Type Method Description private static boolean
JdbcRules. canImplement(SqlAggFunction aggregation, SqlDialect sqlDialect)
Returns whether this JDBC data source can implement a given aggregate function. -
Uses of SqlAggFunction in org.apache.calcite.adapter.mongodb
Methods in org.apache.calcite.adapter.mongodb with parameters of type SqlAggFunction Modifier and Type Method Description private java.lang.String
MongoAggregate. toMongo(SqlAggFunction aggregation, java.util.List<java.lang.String> inNames, java.util.List<java.lang.Integer> args)
-
Uses of SqlAggFunction in org.apache.calcite.materialize
Fields in org.apache.calcite.materialize declared as SqlAggFunction Modifier and Type Field Description SqlAggFunction
Lattice.Measure. agg
(package private) SqlAggFunction
LatticeSuggester.MutableMeasure. aggregate
Methods in org.apache.calcite.materialize that return SqlAggFunction Modifier and Type Method Description private SqlAggFunction
Lattice.Builder. resolveAgg(java.lang.String aggName)
Constructors in org.apache.calcite.materialize with parameters of type SqlAggFunction Constructor Description Measure(SqlAggFunction agg, boolean distinct, java.lang.String name, java.lang.Iterable<Lattice.Column> args)
MutableMeasure(SqlAggFunction aggregate, boolean distinct, java.util.List<LatticeSuggester.ColRef> arguments, java.lang.String name)
-
Uses of SqlAggFunction in org.apache.calcite.plan
Methods in org.apache.calcite.plan that return SqlAggFunction Modifier and Type Method Description static SqlAggFunction
SubstitutionVisitor. getRollup(SqlAggFunction aggregation)
Methods in org.apache.calcite.plan with parameters of type SqlAggFunction Modifier and Type Method Description static SqlAggFunction
SubstitutionVisitor. getRollup(SqlAggFunction aggregation)
-
Uses of SqlAggFunction in org.apache.calcite.rel.core
Fields in org.apache.calcite.rel.core declared as SqlAggFunction Modifier and Type Field Description private SqlAggFunction
AggregateCall. aggFunction
Methods in org.apache.calcite.rel.core that return SqlAggFunction Modifier and Type Method Description SqlAggFunction
AggregateCall. getAggregation()
Returns the aggregate function.Methods in org.apache.calcite.rel.core with parameters of type SqlAggFunction Modifier and Type Method Description static AggregateCall
AggregateCall. create(SqlAggFunction aggFunction, boolean distinct, boolean approximate, java.util.List<java.lang.Integer> argList, int filterArg, int groupCount, RelNode input, RelDataType type, java.lang.String name)
Deprecated.static AggregateCall
AggregateCall. create(SqlAggFunction aggFunction, boolean distinct, boolean approximate, java.util.List<java.lang.Integer> argList, int filterArg, RelCollation collation, int groupCount, RelNode input, RelDataType type, java.lang.String name)
Creates an AggregateCall, inferring its type iftype
is null.static AggregateCall
AggregateCall. create(SqlAggFunction aggFunction, boolean distinct, boolean approximate, java.util.List<java.lang.Integer> argList, int filterArg, RelCollation collation, RelDataType type, java.lang.String name)
Creates an AggregateCall.static AggregateCall
AggregateCall. create(SqlAggFunction aggFunction, boolean distinct, boolean approximate, java.util.List<java.lang.Integer> argList, int filterArg, RelDataType type, java.lang.String name)
Deprecated.static AggregateCall
AggregateCall. create(SqlAggFunction aggFunction, boolean distinct, java.util.List<java.lang.Integer> argList, int filterArg, int groupCount, RelNode input, RelDataType type, java.lang.String name)
Deprecated.static AggregateCall
AggregateCall. create(SqlAggFunction aggFunction, boolean distinct, java.util.List<java.lang.Integer> argList, int groupCount, RelNode input, RelDataType type, java.lang.String name)
Deprecated.static AggregateCall
AggregateCall. create(SqlAggFunction aggFunction, boolean distinct, java.util.List<java.lang.Integer> argList, int filterArg, RelDataType type, java.lang.String name)
Deprecated.Constructors in org.apache.calcite.rel.core with parameters of type SqlAggFunction Constructor Description AggCallBinding(RelDataTypeFactory typeFactory, SqlAggFunction aggFunction, java.util.List<RelDataType> operands, int groupCount, boolean filter)
Creates an AggCallBindingAggregateCall(SqlAggFunction aggFunction, boolean distinct, boolean approximate, java.util.List<java.lang.Integer> argList, int filterArg, RelCollation collation, RelDataType type, java.lang.String name)
Creates an AggregateCall.AggregateCall(SqlAggFunction aggFunction, boolean distinct, java.util.List<java.lang.Integer> argList, RelDataType type, java.lang.String name)
Deprecated.RexMRAggCall(SqlAggFunction aggFun, RelDataType type, java.util.List<RexNode> operands, int ordinal)
RexWinAggCall(SqlAggFunction aggFun, RelDataType type, java.util.List<RexNode> operands, int ordinal, boolean distinct)
Creates a RexWinAggCall. -
Uses of SqlAggFunction in org.apache.calcite.rel.externalize
Methods in org.apache.calcite.rel.externalize that return SqlAggFunction Modifier and Type Method Description (package private) SqlAggFunction
RelJson. toAggregation(java.lang.String agg, java.util.Map<java.lang.String,java.lang.Object> map)
-
Uses of SqlAggFunction in org.apache.calcite.rel.rel2sql
Methods in org.apache.calcite.rel.rel2sql with parameters of type SqlAggFunction Modifier and Type Method Description private SqlCall
SqlImplementor.Context. createOverCall(SqlAggFunction op, java.util.List<SqlNode> operands, SqlWindow window)
-
Uses of SqlAggFunction in org.apache.calcite.rel.rules
Fields in org.apache.calcite.rel.rules with type parameters of type SqlAggFunction Modifier and Type Field Description private static java.util.Map<java.lang.Class<? extends SqlAggFunction>,java.lang.Boolean>
AggregateUnionTransposeRule. SUPPORTED_AGGREGATES
Methods in org.apache.calcite.rel.rules that return SqlAggFunction Modifier and Type Method Description protected SqlAggFunction
AbstractMaterializedViewRule.MaterializedViewAggregateRule. getRollup(SqlAggFunction aggregation)
Get rollup aggregation function.Methods in org.apache.calcite.rel.rules with parameters of type SqlAggFunction Modifier and Type Method Description private AggregateCall
AggregateReduceFunctionsRule. createAggregateCallWithBinding(RelDataTypeFactory typeFactory, SqlAggFunction aggFunction, RelDataType operandType, Aggregate oldAggRel, AggregateCall oldCall, int argOrdinal, int filter)
protected SqlAggFunction
AbstractMaterializedViewRule.MaterializedViewAggregateRule. getRollup(SqlAggFunction aggregation)
Get rollup aggregation function.Method parameters in org.apache.calcite.rel.rules with type arguments of type SqlAggFunction Modifier and Type Method Description private static int
AggregateStarTableRule. find(com.google.common.collect.ImmutableList<Lattice.Measure> measures, Pair<SqlAggFunction,java.util.List<java.lang.Integer>> seek)
-
Uses of SqlAggFunction in org.apache.calcite.rex
Methods in org.apache.calcite.rex that return SqlAggFunction Modifier and Type Method Description SqlAggFunction
RexOver. getAggOperator()
Returns the aggregate operator for this expression.Methods in org.apache.calcite.rex with parameters of type SqlAggFunction Modifier and Type Method Description RexNode
RexBuilder. makeOver(RelDataType type, SqlAggFunction operator, java.util.List<RexNode> exprs, java.util.List<RexNode> partitionKeys, com.google.common.collect.ImmutableList<RexFieldCollation> orderKeys, RexWindowBound lowerBound, RexWindowBound upperBound, boolean physical, boolean allowPartial, boolean nullWhenCountZero, boolean distinct)
Creates a call to a windowed agg.Constructors in org.apache.calcite.rex with parameters of type SqlAggFunction Constructor Description RexOver(RelDataType type, SqlAggFunction op, java.util.List<RexNode> operands, RexWindow window, boolean distinct)
Creates a RexOver. -
Uses of SqlAggFunction in org.apache.calcite.sql
Subclasses of SqlAggFunction in org.apache.calcite.sql Modifier and Type Class Description class
SqlRankFunction
Operator which aggregates sets of values into a result.Methods in org.apache.calcite.sql that return SqlAggFunction Modifier and Type Method Description protected abstract SqlAggFunction
SqlSplittableAggFunction.AbstractSumSplitter. getMergeAggFunctionOfTopSplit()
SqlAggFunction
SqlSplittableAggFunction.Sum0Splitter. getMergeAggFunctionOfTopSplit()
SqlAggFunction
SqlSplittableAggFunction.SumSplitter. getMergeAggFunctionOfTopSplit()
-
Uses of SqlAggFunction in org.apache.calcite.sql.fun
Subclasses of SqlAggFunction in org.apache.calcite.sql.fun Modifier and Type Class Description class
SqlAbstractGroupFunction
Base class for grouping functionsGROUP_ID
,GROUPING_ID
,GROUPING
.class
SqlAnyValueAggFunction
Definition of theANY_VALUE
aggregate functions, returning any one of the values which go into it.class
SqlAvgAggFunction
Avg
is an aggregator which returns the average of the values which go into it.class
SqlCountAggFunction
Definition of the SQLCOUNT
aggregation function.class
SqlCovarAggFunction
Covar
is an aggregator which returns the Covariance of the values which go into it.class
SqlFirstLastValueAggFunction
FIRST_VALUE
andLAST_VALUE
aggregate functions return the first or the last value in a list of values that are input to the function.(package private) class
SqlGroupIdFunction
TheGROUP_ID()
function.(package private) class
SqlGroupingFunction
TheGROUPING
function.(package private) class
SqlGroupingIdFunction
Deprecated.Now thatGROUPING
has the same functionality, this function is deprecated.class
SqlHistogramAggFunction
HISTOGRAM
is the base operator that supports the Histogram MIN/MAX aggregate functions.class
SqlJsonArrayAggAggFunction
TheJSON_OBJECTAGG
aggregate function.class
SqlJsonObjectAggAggFunction
TheJSON_OBJECTAGG
aggregate function.class
SqlLeadLagAggFunction
LEAD
andLAG
aggregate functions return the value of given expression evaluated at given offset.class
SqlMinMaxAggFunction
Definition of theMIN
andMAX
aggregate functions, returning the returns the smallest/largest of the values which go into it.class
SqlNthValueAggFunction
NTH_VALUE
windowed aggregate function returns the value of an expression evaluated at then
th row of the window frame.class
SqlNtileAggFunction
NTILE
aggregate function return the value of given expression evaluated at given offset.class
SqlRegrCountAggFunction
Definition of the SQLREGR_COUNT
aggregation function.class
SqlSingleValueAggFunction
SINGLE_VALUE
aggregate function returns the input value if there is only one value in the input; Otherwise it triggers a run-time error.class
SqlSumAggFunction
Sum
is an aggregator which returns the sum of the values which go into it.class
SqlSumEmptyIsZeroAggFunction
Sum0
is an aggregator which returns the sum of the values which go into it likeSum
.Fields in org.apache.calcite.sql.fun declared as SqlAggFunction Modifier and Type Field Description static SqlAggFunction
SqlStdOperatorTable. ANY_VALUE
ANY_VALUE
aggregate function.static SqlAggFunction
SqlStdOperatorTable. APPROX_COUNT_DISTINCT
APPROX_COUNT_DISTINCT
aggregate function.static SqlAggFunction
SqlStdOperatorTable. AVG
AVG
aggregate function.static SqlAggFunction
SqlStdOperatorTable. COLLECT
The COLLECT operator.static SqlAggFunction
SqlStdOperatorTable. COUNT
COUNT
aggregate function.static SqlAggFunction
SqlStdOperatorTable. COVAR_POP
COVAR_POP
aggregate function.static SqlAggFunction
SqlStdOperatorTable. COVAR_SAMP
COVAR_SAMP
aggregate function.static SqlAggFunction
SqlStdOperatorTable. FIRST_VALUE
FIRST_VALUE
aggregate function.static SqlAggFunction
SqlStdOperatorTable. FUSION
The FUSION operator.static SqlAggFunction
SqlStdOperatorTable. HISTOGRAM_AGG
HISTOGRAM
aggregate function support.static SqlAggFunction
SqlStdOperatorTable. LAG
LAG
aggregate function.static SqlAggFunction
SqlStdOperatorTable. LAST_VALUE
LAST_VALUE
aggregate function.static SqlAggFunction
SqlStdOperatorTable. LEAD
LEAD
aggregate function.static SqlAggFunction
SqlStdOperatorTable. MAX
MAX
aggregate function.static SqlAggFunction
SqlStdOperatorTable. MIN
MIN
aggregate function.static SqlAggFunction
SqlStdOperatorTable. NTH_VALUE
NTH_VALUE
aggregate function.static SqlAggFunction
SqlStdOperatorTable. NTILE
NTILE
aggregate function.static SqlAggFunction
SqlStdOperatorTable. REGR_COUNT
REGR_COUNT
aggregate function.static SqlAggFunction
SqlStdOperatorTable. REGR_SXX
REGR_SXX
aggregate function.static SqlAggFunction
SqlStdOperatorTable. REGR_SYY
REGR_SYY
aggregate function.static SqlAggFunction
SqlStdOperatorTable. SINGLE_VALUE
SINGLE_VALUE
aggregate function.static SqlAggFunction
SqlStdOperatorTable. STDDEV
STDDEV
aggregate function.static SqlAggFunction
SqlStdOperatorTable. STDDEV_POP
STDDEV_POP
aggregate function.static SqlAggFunction
SqlStdOperatorTable. STDDEV_SAMP
STDDEV_SAMP
aggregate function.static SqlAggFunction
SqlStdOperatorTable. SUM
SUM
aggregate function.static SqlAggFunction
SqlStdOperatorTable. SUM0
SUM0
aggregate function.static SqlAggFunction
SqlStdOperatorTable. VAR_POP
VAR_POP
aggregate function.static SqlAggFunction
SqlStdOperatorTable. VAR_SAMP
VAR_SAMP
aggregate function.static SqlAggFunction
SqlStdOperatorTable. VARIANCE
VARIANCE
aggregate function. -
Uses of SqlAggFunction in org.apache.calcite.sql.validate
Subclasses of SqlAggFunction in org.apache.calcite.sql.validate Modifier and Type Class Description class
SqlUserDefinedAggFunction
User-defined aggregate function. -
Uses of SqlAggFunction in org.apache.calcite.sql2rel
Methods in org.apache.calcite.sql2rel with parameters of type SqlAggFunction Modifier and Type Method Description RexNode
StandardConvertletTable. convertAggregateFunction(SqlRexContext cx, SqlAggFunction fun, SqlCall call)
(package private) SqlFunction
SqlToRelConverter.HistogramShuttle. getHistogramOp(SqlAggFunction aggFunction)
Returns the histogram operator corresponding to a given aggregate function. -
Uses of SqlAggFunction in org.apache.calcite.tools
Fields in org.apache.calcite.tools declared as SqlAggFunction Modifier and Type Field Description private SqlAggFunction
RelBuilder.AggCallImpl. aggFunction
Methods in org.apache.calcite.tools with parameters of type SqlAggFunction Modifier and Type Method Description protected RelBuilder.AggCall
RelBuilder. aggregateCall(SqlAggFunction aggFunction, boolean distinct, boolean approximate, RexNode filter, com.google.common.collect.ImmutableList<RexNode> orderKeys, java.lang.String alias, com.google.common.collect.ImmutableList<RexNode> operands)
Creates a call to an aggregate function with all applicable operands.RelBuilder.AggCall
RelBuilder. aggregateCall(SqlAggFunction aggFunction, boolean distinct, boolean approximate, RexNode filter, java.lang.String alias, java.lang.Iterable<? extends RexNode> operands)
Deprecated.RelBuilder.AggCall
RelBuilder. aggregateCall(SqlAggFunction aggFunction, boolean distinct, boolean approximate, RexNode filter, java.lang.String alias, RexNode... operands)
Deprecated.RelBuilder.AggCall
RelBuilder. aggregateCall(SqlAggFunction aggFunction, boolean distinct, RexNode filter, java.lang.String alias, java.lang.Iterable<? extends RexNode> operands)
Deprecated.RelBuilder.AggCall
RelBuilder. aggregateCall(SqlAggFunction aggFunction, boolean distinct, RexNode filter, java.lang.String alias, RexNode... operands)
Deprecated.RelBuilder.AggCall
RelBuilder. aggregateCall(SqlAggFunction aggFunction, java.lang.Iterable<? extends RexNode> operands)
Creates a call to an aggregate function.RelBuilder.AggCall
RelBuilder. aggregateCall(SqlAggFunction aggFunction, RexNode... operands)
Creates a call to an aggregate function.Constructors in org.apache.calcite.tools with parameters of type SqlAggFunction Constructor Description AggCallImpl(SqlAggFunction aggFunction, boolean distinct, boolean approximate, RexNode filter, java.lang.String alias, com.google.common.collect.ImmutableList<RexNode> operands, com.google.common.collect.ImmutableList<RexNode> orderKeys)
-