| 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.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 externalize
RelNodes to and from
XML and JSON format. |
| 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.
|
| Modifier and Type | Field and Description |
|---|---|
private Map<SqlAggFunction,com.google.common.base.Supplier<? extends AggImplementor>> |
RexImpTable.aggMap |
private Map<SqlAggFunction,com.google.common.base.Supplier<? extends WinAggImplementor>> |
RexImpTable.winAggMap |
| Modifier and Type | Method and Description |
|---|---|
SqlAggFunction |
AggContext.aggregation()
Returns the aggregation being implemented.
|
SqlAggFunction |
EnumerableAggregate.AggContextImpl.aggregation() |
| Modifier and Type | Method and Description |
|---|---|
AggImplementor |
RexImpTable.get(SqlAggFunction aggregation,
boolean forWindowAggregate) |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
JdbcRules.canImplement(SqlAggFunction aggregation,
SqlDialect sqlDialect)
Returns whether this JDBC data source can implement a given aggregate
function.
|
| Modifier and Type | Field and Description |
|---|---|
SqlAggFunction |
Lattice.Measure.agg |
| Modifier and Type | Method and Description |
|---|---|
private SqlAggFunction |
Lattice.Builder.resolveAgg(String aggName) |
| Constructor and Description |
|---|
Measure(SqlAggFunction agg,
Iterable<Lattice.Column> args) |
| Modifier and Type | Method and Description |
|---|---|
static SqlAggFunction |
SubstitutionVisitor.getRollup(SqlAggFunction aggregation) |
| Modifier and Type | Method and Description |
|---|---|
static SqlAggFunction |
SubstitutionVisitor.getRollup(SqlAggFunction aggregation) |
| Modifier and Type | Field and Description |
|---|---|
private SqlAggFunction |
AggregateCall.aggFunction |
| Modifier and Type | Method and Description |
|---|---|
SqlAggFunction |
AggregateCall.getAggregation()
Returns the aggregate function.
|
| Modifier and Type | Method and Description |
|---|---|
static AggregateCall |
AggregateCall.create(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
List<Integer> argList,
int filterArg,
int groupCount,
RelNode input,
RelDataType type,
String name)
Creates an AggregateCall, inferring its type if
type is null. |
static AggregateCall |
AggregateCall.create(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
List<Integer> argList,
int filterArg,
RelDataType type,
String name)
Creates an AggregateCall.
|
static AggregateCall |
AggregateCall.create(SqlAggFunction aggFunction,
boolean distinct,
List<Integer> argList,
int filterArg,
int groupCount,
RelNode input,
RelDataType type,
String name)
Deprecated.
|
static AggregateCall |
AggregateCall.create(SqlAggFunction aggFunction,
boolean distinct,
List<Integer> argList,
int filterArg,
RelDataType type,
String name)
Deprecated.
|
static AggregateCall |
AggregateCall.create(SqlAggFunction aggFunction,
boolean distinct,
List<Integer> argList,
int groupCount,
RelNode input,
RelDataType type,
String name)
Deprecated.
|
| Constructor and Description |
|---|
AggCallBinding(RelDataTypeFactory typeFactory,
SqlAggFunction aggFunction,
List<RelDataType> operands,
int groupCount,
boolean filter)
Creates an AggCallBinding
|
AggregateCall(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
List<Integer> argList,
int filterArg,
RelDataType type,
String name)
Creates an AggregateCall.
|
AggregateCall(SqlAggFunction aggFunction,
boolean distinct,
List<Integer> argList,
RelDataType type,
String name)
Deprecated.
|
RexMRAggCall(SqlAggFunction aggFun,
RelDataType type,
List<RexNode> operands,
int ordinal) |
RexWinAggCall(SqlAggFunction aggFun,
RelDataType type,
List<RexNode> operands,
int ordinal,
boolean distinct)
Creates a RexWinAggCall.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) SqlAggFunction |
RelJson.toAggregation(String agg,
Map<String,Object> map) |
| Modifier and Type | Field and Description |
|---|---|
private static Map<Class<? extends SqlAggFunction>,Boolean> |
AggregateUnionTransposeRule.SUPPORTED_AGGREGATES |
| Modifier and Type | Method and Description |
|---|---|
protected SqlAggFunction |
AbstractMaterializedViewRule.MaterializedViewAggregateRule.getRollup(SqlAggFunction aggregation)
Get rollup aggregation function.
|
| Modifier and Type | Method and Description |
|---|---|
private AggregateCall |
AggregateReduceFunctionsRule.createAggregateCallWithBinding(RelDataTypeFactory typeFactory,
SqlAggFunction aggFunction,
RelDataType operandType,
Aggregate oldAggRel,
AggregateCall oldCall,
int argOrdinal) |
protected SqlAggFunction |
AbstractMaterializedViewRule.MaterializedViewAggregateRule.getRollup(SqlAggFunction aggregation)
Get rollup aggregation function.
|
| Modifier and Type | Method and Description |
|---|---|
private static int |
AggregateStarTableRule.find(com.google.common.collect.ImmutableList<Lattice.Measure> measures,
Pair<SqlAggFunction,List<Integer>> seek) |
| Modifier and Type | Method and Description |
|---|---|
SqlAggFunction |
RexOver.getAggOperator()
Returns the aggregate operator for this expression.
|
| Modifier and Type | Method and Description |
|---|---|
RexNode |
RexBuilder.makeOver(RelDataType type,
SqlAggFunction operator,
List<RexNode> exprs,
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.
|
| Constructor and Description |
|---|
RexOver(RelDataType type,
SqlAggFunction op,
List<RexNode> operands,
RexWindow window,
boolean distinct)
Creates a RexOver.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SqlRankFunction
Operator which aggregates sets of values into a result.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract SqlAggFunction |
SqlSplittableAggFunction.AbstractSumSplitter.getMergeAggFunctionOfTopSplit() |
SqlAggFunction |
SqlSplittableAggFunction.SumSplitter.getMergeAggFunctionOfTopSplit() |
SqlAggFunction |
SqlSplittableAggFunction.Sum0Splitter.getMergeAggFunctionOfTopSplit() |
| Modifier and Type | Class and Description |
|---|---|
class |
SqlAbstractGroupFunction
Base class for grouping functions
GROUP_ID, GROUPING_ID,
GROUPING. |
class |
SqlAvgAggFunction
Avg is an aggregator which returns the average of the values
which go into it. |
class |
SqlCountAggFunction
Definition of the SQL
COUNT aggregation function. |
class |
SqlCovarAggFunction
Covar is an aggregator which returns the Covariance of the
values which go into it. |
class |
SqlFirstLastValueAggFunction
FIRST_VALUE and LAST_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
The
GROUP_ID() function. |
(package private) class |
SqlGroupingFunction
The
GROUPING function. |
(package private) class |
SqlGroupingIdFunction
Deprecated.
Now that
GROUPING has the same functionality,
this function is deprecated. |
class |
SqlHistogramAggFunction
HISTOGRAM is the base operator that supports the Histogram
MIN/MAX aggregate functions. |
class |
SqlLeadLagAggFunction
LEAD and LAG aggregate functions
return the value of given expression evaluated at given offset. |
class |
SqlMinMaxAggFunction
Definition of the
MIN and MAX aggregate functions,
returning the returns the smallest/largest of the values which go into it. |
class |
SqlNtileAggFunction
NTILE aggregate function
return the value of given expression evaluated at given offset. |
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 like Sum. |
| Modifier and Type | Field and Description |
|---|---|
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.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.NTILE
NTILE 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. |
| Modifier and Type | Class and Description |
|---|---|
class |
SqlUserDefinedAggFunction
User-defined aggregate function.
|
| Modifier and Type | Method and 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.
|
| Modifier and Type | Field and Description |
|---|---|
private SqlAggFunction |
RelBuilder.AggCallImpl.aggFunction |
| Modifier and Type | Method and Description |
|---|---|
RelBuilder.AggCall |
RelBuilder.aggregateCall(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
RexNode filter,
String alias,
Iterable<? extends RexNode> operands)
Creates a call to an aggregate function.
|
RelBuilder.AggCall |
RelBuilder.aggregateCall(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
RexNode filter,
String alias,
RexNode... operands)
Creates a call to an aggregate function.
|
RelBuilder.AggCall |
RelBuilder.aggregateCall(SqlAggFunction aggFunction,
boolean distinct,
RexNode filter,
String alias,
Iterable<? extends RexNode> operands)
Deprecated.
|
RelBuilder.AggCall |
RelBuilder.aggregateCall(SqlAggFunction aggFunction,
boolean distinct,
RexNode filter,
String alias,
RexNode... operands)
Deprecated.
|
| Constructor and Description |
|---|
AggCallImpl(SqlAggFunction aggFunction,
boolean distinct,
boolean approximate,
RexNode filter,
String alias,
com.google.common.collect.ImmutableList<RexNode> operands) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.