Uses of Interface
org.apache.calcite.plan.Context
-
Packages that use Context Package Description org.apache.calcite.adapter.pig Pig query provider.org.apache.calcite.plan Defines interfaces for constructing rule-based optimizers of relational expressions.org.apache.calcite.plan.hep Provides a heuristic planner implementation for the interfaces inorg.apache.calcite.plan
.org.apache.calcite.plan.volcano Optimizes relational expressions.org.apache.calcite.prepare Preparation of queries (parsing, planning and implementation).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 Context in org.apache.calcite.adapter.pig
Fields in org.apache.calcite.adapter.pig declared as Context Modifier and Type Field Description static Context
PigRelFactories. ALL_PIG_REL_FACTORIES
-
Uses of Context in org.apache.calcite.plan
Classes in org.apache.calcite.plan that implement Context Modifier and Type Class Description private static class
Contexts.ChainContext
Context that wraps a chain of contexts.(package private) static class
Contexts.EmptyContext
Empty context.private static class
Contexts.WrapContext
Context that wraps an object.Fields in org.apache.calcite.plan declared as Context Modifier and Type Field Description protected Context
AbstractRelOptPlanner. context
External context.Fields in org.apache.calcite.plan with type parameters of type Context Modifier and Type Field Description (package private) com.google.common.collect.ImmutableList<Context>
Contexts.ChainContext. contexts
Methods in org.apache.calcite.plan that return Context Modifier and Type Method Description private static Context
Contexts. chain(java.lang.Iterable<? extends Context> contexts)
static Context
Contexts. chain(Context... contexts)
Returns a context that wraps a list of contexts.static Context
Contexts. empty()
Returns a context that returns null for all inquiries.Context
AbstractRelOptPlanner. getContext()
Context
RelOptPlanner. getContext()
Provides the Context created when this planner was constructed.static Context
Contexts. of(java.lang.Object o)
Returns a context that wraps an object.static Context
Contexts. of(java.lang.Object... os)
Returns a context that wraps an array of objects, ignoring any nulls.static Context
Contexts. withConfig(CalciteConnectionConfig config)
Deprecated.Methods in org.apache.calcite.plan with parameters of type Context Modifier and Type Method Description private static void
Contexts. build(java.util.List<Context> list, Context context)
Recursively populates a list of contexts.static Context
Contexts. chain(Context... contexts)
Returns a context that wraps a list of contexts.Method parameters in org.apache.calcite.plan with type arguments of type Context Modifier and Type Method Description private static void
Contexts. build(java.util.List<Context> list, Context context)
Recursively populates a list of contexts.private static Context
Contexts. chain(java.lang.Iterable<? extends Context> contexts)
Constructors in org.apache.calcite.plan with parameters of type Context Constructor Description AbstractRelOptPlanner(RelOptCostFactory costFactory, Context context)
Creates an AbstractRelOptPlanner.Constructor parameters in org.apache.calcite.plan with type arguments of type Context Constructor Description ChainContext(com.google.common.collect.ImmutableList<Context> contexts)
-
Uses of Context in org.apache.calcite.plan.hep
Constructors in org.apache.calcite.plan.hep with parameters of type Context Constructor Description HepPlanner(HepProgram program, Context context)
Creates a new HepPlanner that allows DAG.HepPlanner(HepProgram program, Context context, boolean noDag, Function2<RelNode,RelNode,java.lang.Void> onCopyHook, RelOptCostFactory costFactory)
Creates a new HepPlanner with the option to keep the graph a tree (noDag = true) or allow DAG (noDag = false). -
Uses of Context in org.apache.calcite.plan.volcano
Constructors in org.apache.calcite.plan.volcano with parameters of type Context Constructor Description VolcanoPlanner(Context externalContext)
Creates a uninitializedVolcanoPlanner
.VolcanoPlanner(RelOptCostFactory costFactory, Context externalContext)
Creates aVolcanoPlanner
with a given cost factory. -
Uses of Context in org.apache.calcite.prepare
Methods in org.apache.calcite.prepare with parameters of type Context Modifier and Type Method Description protected RelOptPlanner
CalcitePrepareImpl. createPlanner(CalcitePrepare.Context prepareContext, Context externalContext, RelOptCostFactory costFactory)
Creates a query planner and initializes it with a default set of rules. -
Uses of Context in org.apache.calcite.sql
Classes in org.apache.calcite.sql that implement Context Modifier and Type Class Description class
SqlAggFunction
Abstract base class for the definition of an aggregate function: an operator which aggregates sets of values into a result.class
SqlRankFunction
Operator which aggregates sets of values into a result. -
Uses of Context in org.apache.calcite.sql.fun
Classes in org.apache.calcite.sql.fun that implement Context 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
. -
Uses of Context in org.apache.calcite.sql.validate
Classes in org.apache.calcite.sql.validate that implement Context Modifier and Type Class Description class
SqlUserDefinedAggFunction
User-defined aggregate function. -
Uses of Context in org.apache.calcite.sql2rel
Fields in org.apache.calcite.sql2rel declared as Context Modifier and Type Field Description private Context
RelDecorrelator. context
Constructors in org.apache.calcite.sql2rel with parameters of type Context Constructor Description RelDecorrelator(RelDecorrelator.CorelMap cm, Context context, RelBuilder relBuilder)
-
Uses of Context in org.apache.calcite.tools
Fields in org.apache.calcite.tools declared as Context Modifier and Type Field Description private Context
Frameworks.ConfigBuilder. context
private Context
Frameworks.StdFrameworkConfig. context
Methods in org.apache.calcite.tools that return Context Modifier and Type Method Description Context
FrameworkConfig. getContext()
Returns the PlannerContext that should be made available during planning by callingRelOptPlanner.getContext()
.Context
Frameworks.StdFrameworkConfig. getContext()
Methods in org.apache.calcite.tools with parameters of type Context Modifier and Type Method Description Frameworks.ConfigBuilder
Frameworks.ConfigBuilder. context(Context c)
static RelBuilderFactory
RelBuilder. proto(Context context)
Creates aRelBuilderFactory
, a partially-created RelBuilder.Constructors in org.apache.calcite.tools with parameters of type Context Constructor Description PigRelBuilder(Context context, RelOptCluster cluster, RelOptSchema relOptSchema)
RelBuilder(Context context, RelOptCluster cluster, RelOptSchema relOptSchema)
StdFrameworkConfig(Context context, SqlRexConvertletTable convertletTable, SqlOperatorTable operatorTable, com.google.common.collect.ImmutableList<Program> programs, com.google.common.collect.ImmutableList<RelTraitDef> traitDefs, SqlParser.Config parserConfig, SqlToRelConverter.Config sqlToRelConverterConfig, SchemaPlus defaultSchema, RelOptCostFactory costFactory, RelDataTypeSystem typeSystem, RexExecutor executor, boolean evolveLattice, SqlStatisticProvider statisticProvider, RelOptTable.ViewExpander viewExpander)
-