| Package | Description |
|---|---|
| org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
| org.apache.calcite.jdbc |
JDBC driver for Calcite.
|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.prepare |
Preparation of queries (parsing, planning and implementation).
|
| org.apache.calcite.rel |
Defines relational expressions.
|
| org.apache.calcite.rel.core |
Defines core relational expressions.
|
| 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.dialect |
SQL unparsers for JDBC dialects.
|
| org.apache.calcite.sql.fun |
Defines the set of standard SQL row-level functions and
operators.
|
| org.apache.calcite.sql.parser |
Provides a SQL parser.
|
| 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 | Method and Description |
|---|---|
Expression |
RexToLixTranslator.translateConstructor(List<RexNode> operandList,
SqlKind kind) |
| Modifier and Type | Method and Description |
|---|---|
SqlKind |
CalcitePrepare.ParseResult.kind()
Returns the kind of statement.
|
| Modifier and Type | Field and Description |
|---|---|
private static Map<SqlKind,Strong.Policy> |
Strong.MAP |
| Modifier and Type | Method and Description |
|---|---|
private static Map<SqlKind,Strong.Policy> |
Strong.createPolicyMap() |
| Modifier and Type | Method and Description |
|---|---|
static RelDataType |
RelOptUtil.createDmlRowType(SqlKind kind,
RelDataTypeFactory typeFactory)
Creates the row type descriptor for the result of a DML operation, which
is a single column named ROWCOUNT of type BIGINT for INSERT;
a single column named PLAN for EXPLAIN.
|
private boolean |
RexImplicationChecker.isEquivalentOp(SqlKind fKind,
SqlKind sKind) |
private boolean |
RexImplicationChecker.isOppositeOp(SqlKind fKind,
SqlKind sKind) |
private boolean |
RexImplicationChecker.isSupportedUnaryOperators(SqlKind kind) |
static SqlOperator |
RelOptUtil.op(SqlKind kind,
SqlOperator operator) |
static Strong.Policy |
Strong.policy(SqlKind kind)
Returns how to deduce whether a particular kind of expression is null,
given whether its arguments are null.
|
| Modifier and Type | Method and Description |
|---|---|
private org.apache.calcite.avatica.Meta.StatementType |
CalcitePrepareImpl.getStatementType(SqlKind kind)
Deduces the broad type of statement.
|
protected TableModify.Operation |
Prepare.mapTableModOp(boolean isDml,
SqlKind sqlKind) |
| Modifier and Type | Field and Description |
|---|---|
SqlKind |
RelRoot.kind |
| Modifier and Type | Method and Description |
|---|---|
static RelRoot |
RelRoot.of(RelNode rel,
RelDataType rowType,
SqlKind kind)
Creates a simple RelRoot.
|
static RelRoot |
RelRoot.of(RelNode rel,
SqlKind kind)
Creates a simple RelRoot.
|
RelRoot |
RelRoot.withKind(SqlKind kind)
Creates a copy, assigning a new kind.
|
| Constructor and Description |
|---|
RelRoot(RelNode rel,
RelDataType validatedRowType,
SqlKind kind,
List<Pair<Integer,String>> fields,
RelCollation collation)
Creates a RelRoot.
|
| Modifier and Type | Field and Description |
|---|---|
SqlKind |
SetOp.kind |
| Modifier and Type | Method and Description |
|---|---|
RelNode |
RelFactories.SetOpFactory.createSetOp(SqlKind kind,
List<RelNode> inputs,
boolean all)
Creates a set operation.
|
RelNode |
RelFactories.SetOpFactoryImpl.createSetOp(SqlKind kind,
List<RelNode> inputs,
boolean all) |
| Constructor and Description |
|---|
SetOp(RelOptCluster cluster,
RelTraitSet traits,
List<RelNode> inputs,
SqlKind kind,
boolean all)
Creates a SetOp.
|
| Modifier and Type | Field and Description |
|---|---|
private Set<SqlKind> |
DateRangeRules.ExtractFinder.opKinds |
| Modifier and Type | Method and Description |
|---|---|
private com.google.common.collect.Range<Calendar> |
DateRangeRules.ExtractShuttle.ceilRange(org.apache.calcite.avatica.util.TimeUnitRange timeUnit,
SqlKind comparison,
Calendar c) |
(package private) RexNode |
DateRangeRules.ExtractShuttle.compareExtract(SqlKind comparison,
RexNode operand,
RexLiteral literal) |
private RexNode |
DateRangeRules.ExtractShuttle.compareFloorCeil(SqlKind comparison,
RexNode operand,
RexLiteral timeLiteral,
org.apache.calcite.avatica.util.TimeUnitRange timeUnit,
boolean floor) |
private com.google.common.collect.Range<Calendar> |
DateRangeRules.ExtractShuttle.extractRange(org.apache.calcite.avatica.util.TimeUnitRange timeUnit,
SqlKind comparison,
Calendar c) |
private com.google.common.collect.Range<Calendar> |
DateRangeRules.ExtractShuttle.floorRange(org.apache.calcite.avatica.util.TimeUnitRange timeUnit,
SqlKind comparison,
Calendar c) |
private boolean |
AggregateReduceFunctionsRule.isReducible(SqlKind kind)
Returns whether the aggregate call is a reducible function
|
| Modifier and Type | Field and Description |
|---|---|
(package private) SqlKind |
RexSimplify.Comparison.kind |
private SqlKind |
RexWindowBound.RexWindowBoundBounded.sqlKind |
| Modifier and Type | Method and Description |
|---|---|
SqlKind |
RexInputRef.getKind() |
SqlKind |
RexCorrelVariable.getKind() |
SqlKind |
RexNode.getKind()
Returns the kind of node this is.
|
SqlKind |
RexLocalRef.getKind() |
SqlKind |
RexDynamicParam.getKind() |
SqlKind |
RexPatternFieldRef.getKind() |
SqlKind |
RexTableInputRef.getKind() |
SqlKind |
RexCall.getKind() |
SqlKind |
RexFieldAccess.getKind() |
SqlKind |
RexLiteral.getKind() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RexNode.isA(SqlKind kind) |
(package private) static SqlOperator |
RexUtil.op(SqlKind kind) |
private static <C extends Comparable<C>> |
RexSimplify.processRange(RexBuilder rexBuilder,
List<RexNode> terms,
Map<String,Pair<com.google.common.collect.Range<C>,List<RexNode>>> rangeTerms,
RexNode term,
RexNode ref,
C v0,
SqlKind comparison) |
private static <C extends Comparable<C>> |
RexSimplify.range(SqlKind comparison,
C c) |
private RexNode |
RexSimplify.simplifyIs2(SqlKind kind,
RexNode a) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RexNode.isA(Collection<SqlKind> kinds) |
| Constructor and Description |
|---|
Comparison(RexNode ref,
SqlKind kind,
RexLiteral literal) |
RexWindowBoundBounded(SqlKind sqlKind,
RexNode offset) |
| Constructor and Description |
|---|
RexFieldCollation(RexNode left,
Set<SqlKind> right) |
| Modifier and Type | Field and Description |
|---|---|
SqlKind |
SqlOperator.kind
See
SqlKind. |
| Modifier and Type | Field and Description |
|---|---|
static EnumSet<SqlKind> |
SqlKind.AGGREGATE
Category consisting of all built-in aggregate functions.
|
static Set<SqlKind> |
SqlKind.AVG_AGG_FUNCTIONS
Category of SqlAvgAggFunction.
|
static Set<SqlKind> |
SqlKind.COMPARISON
Category of comparison operators.
|
static EnumSet<SqlKind> |
SqlKind.DDL
Category consisting of all DDL operators.
|
static EnumSet<SqlKind> |
SqlKind.DML
Category consisting of all DML operators.
|
static Set<SqlKind> |
SqlKind.EXPRESSION
Category consisting of all expression operators.
|
static Set<SqlKind> |
SqlKind.FUNCTION
Category consisting of regular and special functions.
|
static EnumSet<SqlKind> |
SqlKind.QUERY
Category consisting of query node types.
|
static EnumSet<SqlKind> |
SqlKind.SET_QUERY
Category consisting of set-query node types.
|
static EnumSet<SqlKind> |
SqlKind.TOP_LEVEL
Category of all SQL statement types.
|
| Modifier and Type | Method and Description |
|---|---|
SqlKind |
SqlSelect.getKind() |
SqlKind |
SqlIdentifier.getKind() |
SqlKind |
SqlOrderBy.getKind() |
SqlKind |
SqlOperator.getKind() |
SqlKind |
SqlInsert.getKind() |
SqlKind |
SqlWindow.getKind() |
SqlKind |
SqlUpdate.getKind() |
SqlKind |
SqlDynamicParam.getKind() |
SqlKind |
SqlBasicCall.getKind() |
SqlKind |
SqlCall.getKind() |
SqlKind |
SqlWithItem.getKind() |
SqlKind |
SqlMerge.getKind() |
SqlKind |
SqlLiteral.getKind() |
SqlKind |
SqlSetOption.getKind() |
SqlKind |
SqlExplain.getKind() |
SqlKind |
SqlMatchRecognize.getKind() |
SqlKind |
SqlJoin.getKind() |
SqlKind |
SqlWith.getKind() |
SqlKind |
SqlNode.getKind()
Returns the type of node this is, or
OTHER if it's nothing special. |
SqlKind |
SqlDelete.getKind() |
SqlKind |
SqlKind.negate()
Returns the kind that you get if you apply NOT to this kind.
|
SqlKind |
SqlKind.negateNullSafe()
Returns the kind that you get if you negate this kind.
|
SqlKind |
SqlKind.reverse()
Returns the kind that corresponds to this operator but in the opposite
direction.
|
static SqlKind |
SqlKind.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlKind[] |
SqlKind.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
SqlNodeList.andOrList(SqlWriter writer,
SqlKind sepKind) |
SqlGroupedWindowFunction |
SqlGroupedWindowFunction.auxiliary(SqlKind kind)
Creates an auxiliary function from this grouped window function.
|
SqlGroupedWindowFunction |
SqlGroupedWindowFunction.auxiliary(String name,
SqlKind kind)
Creates an auxiliary function from this grouped window function.
|
private static Iterator<SqlOperator> |
SqlUtil.filterOperatorRoutinesByKind(Iterator<SqlOperator> routines,
SqlKind sqlKind) |
static SqlOperator |
SqlUtil.lookupRoutine(SqlOperatorTable opTab,
SqlIdentifier funcName,
List<RelDataType> argTypes,
List<String> argNames,
SqlFunctionCategory category,
SqlSyntax syntax,
SqlKind sqlKind)
Looks up a (possibly overloaded) routine based on name and argument
types.
|
static Iterator<SqlOperator> |
SqlUtil.lookupSubjectRoutines(SqlOperatorTable opTab,
SqlIdentifier funcName,
List<RelDataType> argTypes,
List<String> argNames,
SqlSyntax sqlSyntax,
SqlKind sqlKind,
SqlFunctionCategory category)
Looks up all subject routines matching the given name and argument types.
|
boolean |
SqlDialect.supportsAggregateFunction(SqlKind kind) |
protected void |
SqlOperator.unparseListClause(SqlWriter writer,
SqlNode clause,
SqlKind sepKind) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SqlKind.belongsTo(Collection<SqlKind> category)
Returns whether this
SqlKind belongs to a given category. |
boolean |
SqlNode.isA(Set<SqlKind> category)
Returns whether this node is a member of an aggregate category.
|
| Constructor and Description |
|---|
SqlAggFunction(String name,
SqlIdentifier sqlIdentifier,
SqlKind kind,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
SqlFunctionCategory funcType)
Deprecated.
|
SqlAggFunction(String name,
SqlIdentifier sqlIdentifier,
SqlKind kind,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
SqlFunctionCategory funcType,
boolean requiresOrder,
boolean requiresOver)
Creates a built-in or user-defined SqlAggFunction or window function.
|
SqlAggFunction(String name,
SqlKind kind,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
SqlFunctionCategory funcType)
Deprecated.
|
SqlAsOperator(String name,
SqlKind kind,
int prec,
boolean leftAssoc,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker) |
SqlBinaryOperator(String name,
SqlKind kind,
int prec,
boolean leftAssoc,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker)
Creates a SqlBinaryOperator.
|
SqlFunction(String name,
SqlIdentifier sqlIdentifier,
SqlKind kind,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
List<RelDataType> paramTypes,
SqlFunctionCategory category)
Internal constructor.
|
SqlFunction(String name,
SqlKind kind,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
SqlFunctionCategory category)
Creates a new SqlFunction for a call to a builtin function.
|
SqlFunctionalOperator(String name,
SqlKind kind,
int pred,
boolean isLeftAssoc,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker) |
SqlGroupedWindowFunction(SqlKind kind,
SqlGroupedWindowFunction groupFunction,
SqlOperandTypeChecker operandTypeChecker)
Deprecated.
|
SqlGroupedWindowFunction(String name,
SqlKind kind,
SqlGroupedWindowFunction groupFunction,
SqlOperandTypeChecker operandTypeChecker)
Deprecated.
|
SqlGroupedWindowFunction(String name,
SqlKind kind,
SqlGroupedWindowFunction groupFunction,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
SqlFunctionCategory category)
Creates a SqlGroupedWindowFunction.
|
SqlInfixOperator(String[] names,
SqlKind kind,
int precedence,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker) |
SqlInternalOperator(String name,
SqlKind kind) |
SqlInternalOperator(String name,
SqlKind kind,
int prec) |
SqlInternalOperator(String name,
SqlKind kind,
int prec,
boolean isLeftAssoc,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker) |
SqlLateralOperator(SqlKind kind) |
SqlOperator(String name,
SqlKind kind,
int prec,
boolean leftAssoc,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker)
Creates an operator specifying left/right associativity.
|
SqlOperator(String name,
SqlKind kind,
int leftPrecedence,
int rightPrecedence,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker)
Creates an operator.
|
SqlPostfixOperator(String name,
SqlKind kind,
int prec,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker) |
SqlPrefixOperator(String name,
SqlKind kind,
int prec,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker) |
SqlRankFunction(boolean requiresOrder,
SqlKind kind)
Deprecated.
|
SqlRankFunction(SqlKind kind,
SqlReturnTypeInference returnTypes,
boolean requiresOrder) |
SqlSetOperator(String name,
SqlKind kind,
int prec,
boolean all) |
SqlSetOperator(String name,
SqlKind kind,
int prec,
boolean all,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker) |
SqlSpecialOperator(String name,
SqlKind kind) |
SqlSpecialOperator(String name,
SqlKind kind,
int prec) |
SqlSpecialOperator(String name,
SqlKind kind,
int prec,
boolean leftAssoc,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
JethroDataSqlDialect.supportsAggregateFunction(SqlKind kind) |
boolean |
MysqlSqlDialect.supportsAggregateFunction(SqlKind kind) |
| Modifier and Type | Field and Description |
|---|---|
SqlKind |
SqlQuantifyOperator.comparisonKind |
| Modifier and Type | Method and Description |
|---|---|
SqlKind |
SqlCase.getKind() |
| Modifier and Type | Method and Description |
|---|---|
static SqlQuantifyOperator |
SqlStdOperatorTable.all(SqlKind comparisonKind)
Returns the operator for
ALL comparisonKind. |
static SqlGroupedWindowFunction |
SqlStdOperatorTable.auxiliaryToGroup(SqlKind kind)
Returns the group function for which a given kind is an auxiliary
function, or null if it is not an auxiliary function.
|
static SqlQuantifyOperator |
SqlStdOperatorTable.some(SqlKind comparisonKind)
Returns the operator for
SOME comparisonKind. |
| Modifier and Type | Method and Description |
|---|---|
static SqlNode |
SqlParserUtil.toTreeEx(SqlSpecialOperator.TokenSequence list,
int start,
int minPrec,
SqlKind stopperKind)
Converts a list of {expression, operator, expression, ...} into a tree,
taking operator precedence and associativity into account.
|
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
SqlValidatorImpl.isAggregation(SqlKind kind) |
private static boolean |
SqlValidatorImpl.isLogicalNavigation(SqlKind kind) |
private static boolean |
SqlValidatorImpl.isPhysicalNavigation(SqlKind kind) |
private static boolean |
SqlValidatorImpl.isRunningOrFinal(SqlKind kind) |
private static boolean |
SqlValidatorImpl.isSingleVarRequired(SqlKind kind) |
| Modifier and Type | Field and Description |
|---|---|
private SqlKind |
StandardConvertletTable.AvgVarianceConvertlet.kind |
| Modifier and Type | Method and Description |
|---|---|
RexNode |
SqlToRelConverter.Blackboard.convertSortExpression(SqlNode expr,
Set<SqlKind> flags)
Converts an item in an ORDER BY clause, extracting DESC, NULLS LAST
and NULLS FIRST flags first.
|
| Constructor and Description |
|---|
AvgVarianceConvertlet(SqlKind kind) |
| Modifier and Type | Method and Description |
|---|---|
private RelBuilder |
RelBuilder.setOp(boolean all,
SqlKind kind,
int n) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.