| Package | Description |
|---|---|
| org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
| 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.core |
Defines core relational expressions.
|
| 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.parser |
Provides a SQL parser.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
RexToLixTranslator.translateConstructor(List<RexNode> operandList,
SqlKind kind) |
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Prepare.PreparedResult |
Prepare.implement(RelDataType rowType,
RelNode rootRel,
SqlKind sqlKind)
Implements a physical query plan.
|
protected TableModify.Operation |
Prepare.mapTableModOp(boolean isDml,
SqlKind sqlKind) |
| 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.
|
| Constructor and Description |
|---|
SetOp(RelOptCluster cluster,
RelTraitSet traits,
List<RelNode> inputs,
SqlKind kind,
boolean all)
Creates a SetOp.
|
| Modifier and Type | Method and Description |
|---|---|
SqlKind |
RexDynamicParam.getKind() |
SqlKind |
RexFieldAccess.getKind() |
SqlKind |
RexLocalRef.getKind() |
SqlKind |
RexNode.getKind()
Returns the kind of node this is.
|
SqlKind |
RexCorrelVariable.getKind() |
SqlKind |
RexLiteral.getKind() |
SqlKind |
RexCall.getKind() |
SqlKind |
RexInputRef.getKind() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RexNode.isA(SqlKind kind) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RexNode.isA(Collection<SqlKind> kinds) |
| 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 Set<SqlKind> |
SqlKind.COMPARISON
Category of comparison 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 Set<SqlKind> |
SqlKind.TOP_LEVEL
Category of all SQL statement types.
|
| Modifier and Type | Method and Description |
|---|---|
SqlKind |
SqlMerge.getKind() |
SqlKind |
SqlWith.getKind() |
SqlKind |
SqlDynamicParam.getKind() |
SqlKind |
SqlOperator.getKind() |
SqlKind |
SqlInsert.getKind() |
SqlKind |
SqlWithItem.getKind() |
SqlKind |
SqlDelete.getKind() |
SqlKind |
SqlIdentifier.getKind() |
SqlKind |
SqlUpdate.getKind() |
SqlKind |
SqlBasicCall.getKind() |
SqlKind |
SqlOrderBy.getKind() |
SqlKind |
SqlSelect.getKind() |
SqlKind |
SqlNode.getKind()
Returns the type of node this is, or
OTHER if it's nothing special. |
SqlKind |
SqlSetOption.getKind() |
SqlKind |
SqlExplain.getKind() |
SqlKind |
SqlWindow.getKind() |
SqlKind |
SqlLiteral.getKind() |
SqlKind |
SqlJoin.getKind() |
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 |
|---|---|
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)
Creates a user-defined SqlAggFunction.
|
SqlAggFunction(String name,
SqlKind kind,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
SqlFunctionCategory funcType)
Creates a built-in SqlAggFunction.
|
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) |
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) |
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) |
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 |
|---|---|
SqlKind |
SqlCase.getKind() |
| Constructor and Description |
|---|
SqlAbstractGroupFunction(String name,
SqlKind kind,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
SqlFunctionCategory category)
Creates a SqlAbstractGroupFunction.
|
SqlFloorFunction(SqlKind kind) |
SqlMonotonicBinaryOperator(String name,
SqlKind kind,
int prec,
boolean isLeftAssoc,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker) |
SqlMonotonicUnaryFunction(String name,
SqlKind kind,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
SqlFunctionCategory funcType) |
SqlMultisetQueryConstructor(String name,
SqlKind kind) |
SqlMultisetValueConstructor(String name,
SqlKind kind) |
| Modifier and Type | Method and Description |
|---|---|
static SqlNode |
SqlParserUtil.toTreeEx(List<Object> 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 |
|---|---|
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.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.