| 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.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.parser |
Provides a SQL parser.
|
| org.apache.calcite.sql.type |
SQL type system.
|
| org.apache.calcite.sql.util |
Utility classes for the SQL object model, parsing, and validation.
|
| org.apache.calcite.sql.validate |
SQL validation.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| Modifier and Type | Field and Description |
|---|---|
static Map<Method,SqlOperator> |
RexToLixTranslator.JAVA_TO_SQL_METHOD_MAP |
| Modifier and Type | Method and Description |
|---|---|
CallImplementor |
RexImpTable.get(SqlOperator operator) |
| Modifier and Type | Method and Description |
|---|---|
static RexNode |
RelOptUtil.splitJoinCondition(List<RelDataTypeField> sysFieldList,
List<RelNode> inputs,
RexNode condition,
List<List<RexNode>> joinKeys,
List<Integer> filterNulls,
List<SqlOperator> rangeOp)
Splits out the equi-join (and optionally, a single non-equi) components
of a join condition, and returns what's left.
|
static RexNode |
RelOptUtil.splitJoinCondition(List<RelDataTypeField> sysFieldList,
RelNode leftRel,
RelNode rightRel,
RexNode condition,
List<RexNode> leftJoinKeys,
List<RexNode> rightJoinKeys,
List<Integer> filterNulls,
List<SqlOperator> rangeOp)
Splits out the equi-join (and optionally, a single non-equi) components
of a join condition, and returns what's left.
|
| Modifier and Type | Method and Description |
|---|---|
List<SqlOperator> |
CalciteCatalogReader.getOperatorList() |
| Modifier and Type | Method and Description |
|---|---|
void |
CalciteCatalogReader.lookupOperatorOverloads(SqlIdentifier opName,
SqlFunctionCategory category,
SqlSyntax syntax,
List<SqlOperator> operatorList) |
| Constructor and Description |
|---|
PushProjector.OperatorExprCondition(Set<SqlOperator> operatorSet)
Creates an OperatorExprCondition.
|
| Modifier and Type | Method and Description |
|---|---|
SqlOperator |
RexCall.getOperator() |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
RexBuilder.deriveReturnType(SqlOperator op,
List<? extends RexNode> exprs)
Derives the return type of a call to an operator.
|
static RexCall |
RexUtil.findOperatorCall(SqlOperator operator,
RexNode node)
Returns whether a given node contains a RexCall with a specified operator
|
static List<RexNode> |
RexUtil.flatten(List<? extends RexNode> exprs,
SqlOperator op)
Converts a list of operands into a list that is flat with respect to
the given operator.
|
static boolean |
RexUtil.isCallTo(RexNode expr,
SqlOperator op)
|
RexNode |
RexBuilder.makeCall(RelDataType returnType,
SqlOperator op,
List<RexNode> exprs)
Creates a call with a list of arguments and a predetermined type.
|
RexNode |
RexBuilder.makeCall(SqlOperator op,
List<? extends RexNode> exprs)
Creates a call with an array of arguments.
|
RexNode |
RexBuilder.makeCall(SqlOperator op,
RexNode... exprs)
Creates a call with a list of arguments.
|
protected void |
RexSqlStandardConvertletTable.registerEquivOp(SqlOperator op)
Creates and registers a convertlet for an operator in which
the SQL and Rex representations are structurally equivalent.
|
protected void |
RexSqlReflectiveConvertletTable.registerOp(SqlOperator op,
RexSqlConvertlet convertlet)
Registers a convertlet for a given operator instance
|
| Constructor and Description |
|---|
RexCall(RelDataType type,
SqlOperator op,
List<? extends RexNode> operands) |
RexCallBinding(RelDataTypeFactory typeFactory,
SqlOperator sqlOperator,
List<? extends RexNode> operands) |
| Modifier and Type | Class and Description |
|---|---|
class |
SqlAggFunction
Abstract base class for the definition of an aggregate function: an operator
which aggregates sets of values into a result.
|
class |
SqlAsOperator
The
AS operator associates an expression with an alias. |
class |
SqlBinaryOperator
SqlBinaryOperator is a binary operator. |
class |
SqlFunction
A
SqlFunction is a type of operator which has conventional
function-call syntax. |
class |
SqlFunctionalOperator
SqlFunctionalOperator is a base class for special operators which use
functional syntax.
|
class |
SqlInfixOperator
A generalization of a binary operator to involve several (two or more)
arguments, and keywords between each pair of arguments.
|
class |
SqlInternalOperator
Generic operator for nodes with internal syntax.
|
class |
SqlJdbcFunctionCall
A
SqlJdbcFunctionCall is a node of a parse tree which represents
a JDBC function call. |
static class |
SqlJoin.SqlJoinOperator
SqlJoinOperator describes the syntax of the SQL
JOIN operator. |
class |
SqlOverOperator
An operator describing a window function specification.
|
class |
SqlPostfixOperator
A postfix unary operator.
|
class |
SqlPrefixOperator
A unary operator.
|
class |
SqlProcedureCallOperator
SqlProcedureCallOperator represents the CALL statement.
|
class |
SqlRankFunction
Operator which aggregates sets of values into a result.
|
class |
SqlSelectOperator
An operator describing a query.
|
class |
SqlSetOperator
SqlSetOperator represents a relational set theory operator (UNION, INTERSECT,
MINUS).
|
class |
SqlSpecialOperator
Generic operator for nodes with special syntax.
|
class |
SqlUnnestOperator
The
UNNEST operator. |
class |
SqlUnresolvedFunction
Placeholder for an unresolved function.
|
class |
SqlValuesOperator
The
VALUES operator. |
| Modifier and Type | Method and Description |
|---|---|
SqlOperator |
SqlMerge.getOperator() |
SqlOperator |
SqlWith.getOperator() |
SqlOperator |
SqlInsert.getOperator() |
SqlOperator |
SqlWithItem.getOperator() |
SqlOperator |
SqlDelete.getOperator() |
abstract SqlOperator |
SqlCall.getOperator() |
SqlOperator |
SqlUpdate.getOperator() |
SqlOperator |
SqlBasicCall.getOperator() |
SqlOperator |
SqlOperatorBinding.getOperator() |
SqlOperator |
SqlOrderBy.getOperator() |
SqlOperator |
SqlSelect.getOperator() |
SqlOperator |
SqlSetOption.getOperator() |
SqlOperator |
SqlExplain.getOperator() |
SqlOperator |
SqlWindow.getOperator() |
SqlOperator |
SqlJoin.getOperator() |
| Modifier and Type | Method and Description |
|---|---|
List<SqlOperator> |
SqlOperatorTable.getOperatorList()
Retrieves a list of all functions and operators in this table.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
SqlUtil.getAliasedSignature(SqlOperator op,
String opName,
List<?> typeList)
Constructs an operator signature from a type list, substituting an alias
for the operator name.
|
static String |
SqlUtil.getOperatorSignature(SqlOperator op,
List<?> typeList)
Constructs an operator signature from a type list.
|
static boolean |
SqlUtil.isCallTo(SqlNode node,
SqlOperator operator)
|
void |
SqlBasicCall.setOperator(SqlOperator operator) |
abstract void |
SqlSyntax.unparse(SqlWriter writer,
SqlOperator operator,
SqlCall call,
int leftPrec,
int rightPrec)
Converts a call to an operator of this syntax into a string.
|
static void |
SqlUtil.unparseBinarySyntax(SqlOperator operator,
SqlCall call,
SqlWriter writer,
int leftPrec,
int rightPrec) |
static void |
SqlUtil.unparseFunctionSyntax(SqlOperator operator,
SqlWriter writer,
SqlCall call)
Unparses a call to an operator which has function syntax.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SqlOperatorTable.lookupOperatorOverloads(SqlIdentifier opName,
SqlFunctionCategory category,
SqlSyntax syntax,
List<SqlOperator> operatorList)
Retrieves a list of operators with a given name and syntax.
|
| Constructor and Description |
|---|
ExplicitOperatorBinding(RelDataTypeFactory typeFactory,
SqlOperator operator,
List<RelDataType> types) |
SqlBasicCall(SqlOperator operator,
SqlNode[] operands,
SqlParserPos pos) |
SqlBasicCall(SqlOperator operator,
SqlNode[] operands,
SqlParserPos pos,
boolean expanded,
SqlLiteral functionQualifier) |
SqlOperatorBinding(RelDataTypeFactory typeFactory,
SqlOperator sqlOperator)
Creates a SqlOperatorBinding.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SqlAbstractGroupFunction
Base class for grouping functions
GROUP_ID, GROUPING_ID,
GROUPING. |
class |
SqlAbstractTimeFunction
Base class for time functions such as "LOCALTIME", "LOCALTIME(n)".
|
class |
SqlArrayQueryConstructor
Definition of the SQL:2003 standard ARRAY query constructor,
ARRAY (<query>). |
class |
SqlArrayValueConstructor
Definition of the SQL:2003 standard ARRAY constructor,
MULTISET
[<expr>, ...]. |
class |
SqlAvgAggFunction
Avg is an aggregator which returns the average of the values
which go into it. |
class |
SqlBetweenOperator
Defines the BETWEEN operator.
|
class |
SqlCaseOperator
An operator describing a
CASE, NULLIF or
COALESCE expression. |
class |
SqlCastFunction
SqlCastFunction.
|
class |
SqlCoalesceFunction
The
COALESCE function. |
class |
SqlCollectionTableOperator
SqlCollectionTableOperator is the "table function derived table" operator.
|
class |
SqlColumnListConstructor
SqlColumnListConstructor defines the non-standard constructor used to pass a
COLUMN_LIST parameter to a UDX.
|
class |
SqlConvertFunction
Common base for the
CONVERT and TRANSLATE
functions. |
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 |
SqlCurrentDateFunction
The
CURRENT_DATE function. |
class |
SqlCursorConstructor
SqlCursorConstructor defines the non-standard CURSOR(<query>)
constructor.
|
class |
SqlDatetimeSubtractionOperator
A special operator for the subtraction of two DATETIMEs.
|
class |
SqlExtractFunction
The SQL
EXTRACT operator. |
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. |
class |
SqlFloorFunction
Definition of the "FLOOR" and "CEIL" built-in SQL functions.
|
class |
SqlHistogramAggFunction
HistogramAgg is base operator which supports the Histogram
MIN/MAX aggregatoin functions. |
class |
SqlInOperator
Definition of the SQL
IN operator, which tests for a value's
membership in a subquery or a list of values. |
class |
SqlLeadLagAggFunction
LEAD and LAG aggregate functions
return the value of given expression evaluated at given offset. |
class |
SqlLikeOperator
An operator describing the
LIKE and SIMILAR
operators. |
class |
SqlLiteralChainOperator
Internal operator, by which the parser represents a continued string literal.
|
class |
SqlMapQueryConstructor
Definition of the MAP query constructor,
MAP (<query>). |
class |
SqlMapValueConstructor
Definition of the MAP constructor,
MAP [<key>, <value>, ...]. |
class |
SqlMinMaxAggFunction
Definition of the
MIN and MAX aggregate functions,
returning the returns the smallest/largest of the values which go into it. |
class |
SqlMonotonicBinaryOperator
Base class for binary operators such as addition, subtraction, and
multiplication which are monotonic for the patterns
m op c and
c op m where m is any monotonic expression and c is a constant. |
class |
SqlMonotonicUnaryFunction
Base class for unary operators such as FLOOR/CEIL which are monotonic for
monotonic inputs.
|
class |
SqlMultisetMemberOfOperator
Multiset MEMBER OF.
|
class |
SqlMultisetQueryConstructor
Definition of the SQL:2003 standard MULTISET query constructor,
MULTISET (<query>). |
class |
SqlMultisetSetOperator
An operator which performs set operations on multisets, such as "MULTISET
UNION ALL".
|
class |
SqlMultisetValueConstructor
Definition of the SQL:2003 standard MULTISET constructor,
MULTISET
[<expr>, ...]. |
class |
SqlNewOperator
SqlNewOperator represents an SQL
new specification such as
NEW UDT(1, 2). |
class |
SqlNtileAggFunction
NTILE aggregate function
return the value of given expression evaluated at given offset. |
class |
SqlNullifFunction
The
NULLIF function. |
class |
SqlOverlapsOperator
SqlOverlapsOperator represents the SQL:1999 standard
OVERLAPS
function. |
class |
SqlOverlayFunction
The
OVERLAY function. |
class |
SqlPositionFunction
The
POSITION function. |
class |
SqlQuarterFunction
SqlQuarterFunction represents the SQL:1999 standard
QUARTER
function. |
class |
SqlRowOperator
SqlRowOperator represents the special ROW constructor.
|
class |
SqlSequenceValueOperator
Operator that returns the current or next value of a sequence.
|
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 |
SqlStringContextVariable
Base class for functions such as "USER", "CURRENT_ROLE", and "CURRENT_PATH".
|
class |
SqlSubstringFunction
Definition of the "SUBSTRING" builtin SQL function.
|
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. |
class |
SqlThrowOperator
An internal operator that throws an exception.
|
class |
SqlTrimFunction
Definition of the "TRIM" builtin SQL function.
|
| Modifier and Type | Field and Description |
|---|---|
static SqlOperator |
SqlStdOperatorTable.CURRENT_VALUE
The sequence current value function:
CURRENT VALUE FOR
sequence |
static SqlOperator |
SqlStdOperatorTable.ITEM
The item operator {@code [ ...
|
static SqlOperator |
SqlStdOperatorTable.MINUS_DATE
A special operator for the subtraction of two DATETIMEs.
|
static SqlOperator |
SqlStdOperatorTable.NEW |
static SqlOperator |
SqlStdOperatorTable.NEXT_VALUE
The sequence next value function:
NEXT VALUE FOR sequence |
static SqlOperator |
SqlStdOperatorTable.PROCEDURE_CALL |
| Modifier and Type | Method and Description |
|---|---|
SqlOperator |
SqlCase.getOperator() |
| Modifier and Type | Method and Description |
|---|---|
SqlOperator |
SqlParserUtil.ToTreeListItem.getOperator() |
| Constructor and Description |
|---|
SqlParserUtil.ToTreeListItem(SqlOperator op,
SqlParserPos pos) |
| Modifier and Type | Method and Description |
|---|---|
String |
SqlOperandTypeChecker.getAllowedSignatures(SqlOperator op,
String opName)
Returns a string describing the allowed formal signatures of a call, e.g.
|
String |
CompositeOperandTypeChecker.getAllowedSignatures(SqlOperator op,
String opName) |
String |
SetopOperandTypeChecker.getAllowedSignatures(SqlOperator op,
String opName) |
String |
FamilyOperandTypeChecker.getAllowedSignatures(SqlOperator op,
String opName) |
String |
AssignableOperandTypeChecker.getAllowedSignatures(SqlOperator op,
String opName) |
String |
MultisetOperandTypeChecker.getAllowedSignatures(SqlOperator op,
String opName) |
String |
LiteralOperandTypeChecker.getAllowedSignatures(SqlOperator op,
String opName) |
String |
ComparableOperandTypeChecker.getAllowedSignatures(SqlOperator op,
String opName) |
String |
SameOperandTypeChecker.getAllowedSignatures(SqlOperator op,
String opName) |
| Modifier and Type | Method and Description |
|---|---|
List<SqlOperator> |
ReflectiveSqlOperatorTable.getOperatorList() |
List<SqlOperator> |
ChainedSqlOperatorTable.getOperatorList() |
List<SqlOperator> |
ListSqlOperatorTable.getOperatorList() |
| Modifier and Type | Method and Description |
|---|---|
void |
ListSqlOperatorTable.add(SqlOperator op) |
void |
ReflectiveSqlOperatorTable.register(SqlOperator op) |
| Modifier and Type | Method and Description |
|---|---|
void |
ReflectiveSqlOperatorTable.lookupOperatorOverloads(SqlIdentifier opName,
SqlFunctionCategory category,
SqlSyntax syntax,
List<SqlOperator> operatorList) |
void |
ChainedSqlOperatorTable.lookupOperatorOverloads(SqlIdentifier opName,
SqlFunctionCategory category,
SqlSyntax syntax,
List<SqlOperator> operatorList) |
void |
ListSqlOperatorTable.lookupOperatorOverloads(SqlIdentifier opName,
SqlFunctionCategory category,
SqlSyntax syntax,
List<SqlOperator> operatorList) |
| Constructor and Description |
|---|
ListSqlOperatorTable(List<SqlOperator> operatorList) |
| Modifier and Type | Class and Description |
|---|---|
class |
SqlUserDefinedAggFunction
User-defined aggregate function.
|
class |
SqlUserDefinedFunction
User-defined scalar function.
|
class |
SqlUserDefinedTableFunction
User-defined table function.
|
class |
SqlUserDefinedTableMacro
User-defined table macro.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ReflectiveConvertletTable.addAlias(SqlOperator alias,
SqlOperator target)
Registers that one operator is an alias for another.
|
protected void |
ReflectiveConvertletTable.registerOp(SqlOperator op,
SqlRexConvertlet convertlet)
Registers a convertlet for a given operator instance
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.