| Package | Description |
|---|---|
| org.apache.calcite.rel.metadata |
Defines metadata interfaces and utilities for relational
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.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 SqlFunction |
RelMdUtil.ARTIFICIAL_SELECTIVITY_FUNC |
| 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 |
SqlJdbcFunctionCall
A
SqlJdbcFunctionCall is a node of a parse tree which represents
a JDBC function call. |
class |
SqlRankFunction
Operator which aggregates sets of values into a result.
|
class |
SqlUnresolvedFunction
Placeholder for an unresolved function.
|
| Modifier and Type | Method and Description |
|---|---|
static SqlFunction |
SqlUtil.lookupRoutine(SqlOperatorTable opTab,
SqlIdentifier funcName,
List<RelDataType> argTypes,
SqlFunctionCategory category)
Looks up a (possibly overloaded) routine based on name and argument
types.
|
| Modifier and Type | Method and Description |
|---|---|
static List<SqlFunction> |
SqlUtil.lookupSubjectRoutines(SqlOperatorTable opTab,
SqlIdentifier funcName,
List<RelDataType> argTypes,
SqlFunctionCategory category)
Looks up all subject routines matching the given name and argument types.
|
| 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 |
SqlAvgAggFunction
Avg is an aggregator which returns the average of the values
which go into it. |
class |
SqlCastFunction
SqlCastFunction.
|
class |
SqlCoalesceFunction
The
COALESCE function. |
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 |
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 |
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 |
SqlMonotonicUnaryFunction
Base class for unary operators such as FLOOR/CEIL which are monotonic for
monotonic inputs.
|
class |
SqlNtileAggFunction
NTILE aggregate function
return the value of given expression evaluated at given offset. |
class |
SqlNullifFunction
The
NULLIF function. |
class |
SqlOverlayFunction
The
OVERLAY function. |
class |
SqlPositionFunction
The
POSITION function. |
class |
SqlQuarterFunction
SqlQuarterFunction represents the SQL:1999 standard
QUARTER
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 |
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 |
SqlTrimFunction
Definition of the "TRIM" builtin SQL function.
|
| Modifier and Type | Field and Description |
|---|---|
static SqlFunction |
SqlStdOperatorTable.ABS |
static SqlFunction |
SqlStdOperatorTable.CARDINALITY
The CARDINALITY operator, used to retrieve the number of elements in a
MULTISET, ARRAY or MAP.
|
static SqlFunction |
SqlStdOperatorTable.CAST
The SQL
CAST operator. |
static SqlFunction |
SqlStdOperatorTable.CEIL
The
CEIL function. |
static SqlFunction |
SqlStdOperatorTable.CHAR_LENGTH |
static SqlFunction |
SqlStdOperatorTable.CHARACTER_LENGTH |
static SqlFunction |
SqlStdOperatorTable.COALESCE
The COALESCE builtin function.
|
static SqlFunction |
SqlStdOperatorTable.COLLECT
The COLLECT operator.
|
static SqlFunction |
SqlStdOperatorTable.CONVERT |
static SqlFunction |
SqlStdOperatorTable.CURRENT_CATALOG
The
CURRENT_CATALOG function. |
static SqlFunction |
SqlStdOperatorTable.CURRENT_DATE
The
CURRENT_DATE function. |
static SqlFunction |
SqlStdOperatorTable.CURRENT_PATH
The
CURRENT_PATH function. |
static SqlFunction |
SqlStdOperatorTable.CURRENT_ROLE
The
CURRENT_ROLE function. |
static SqlFunction |
SqlStdOperatorTable.CURRENT_SCHEMA
The
CURRENT_SCHEMA function. |
static SqlFunction |
SqlStdOperatorTable.CURRENT_TIME
The
CURRENT_TIME [(precision)] function. |
static SqlFunction |
SqlStdOperatorTable.CURRENT_TIMESTAMP
The
CURRENT_TIMESTAMP [(precision)] function. |
static SqlFunction |
SqlStdOperatorTable.CURRENT_USER
The
CURRENT_USER function. |
static SqlFunction |
SqlStdOperatorTable.ELEMENT
The ELEMENT operator, used to convert a multiset with only one item to a
"regular" type.
|
static SqlFunction |
SqlStdOperatorTable.EXP |
static SqlFunction |
SqlStdOperatorTable.EXTRACT
The SQL
EXTRACT operator. |
static SqlFunction |
SqlStdOperatorTable.FLOOR
The
FLOOR function. |
static SqlFunction |
SqlStdOperatorTable.FUSION
The FUSION operator.
|
static SqlFunction |
SqlStdOperatorTable.HISTOGRAM_FIRST_VALUE
HISTOGRAM_FIRST_VALUE window aggregate function. |
static SqlFunction |
SqlStdOperatorTable.HISTOGRAM_LAST_VALUE
HISTOGRAM_LAST_VALUE window aggregate function. |
static SqlFunction |
SqlStdOperatorTable.HISTOGRAM_MAX
HISTOGRAM_MAX window aggregate function. |
static SqlFunction |
SqlStdOperatorTable.HISTOGRAM_MIN
HISTOGRAM_MIN window aggregate function. |
static SqlFunction |
SqlStdOperatorTable.IN_FENNEL
Use of the
IN_FENNEL operator forces the argument to be
evaluated in Fennel. |
static SqlFunction |
SqlStdOperatorTable.INITCAP |
static SqlFunction |
SqlStdOperatorTable.LN |
static SqlFunction |
SqlStdOperatorTable.LOCALTIME
The
LOCALTIME [(precision)] function. |
static SqlFunction |
SqlStdOperatorTable.LOCALTIMESTAMP
The
LOCALTIMESTAMP [(precision)] function. |
static SqlFunction |
SqlStdOperatorTable.LOG10 |
static SqlFunction |
SqlStdOperatorTable.LOWER |
static SqlFunction |
SqlStdOperatorTable.MOD |
static SqlFunction |
SqlStdOperatorTable.NULLIF |
static SqlFunction |
SqlStdOperatorTable.OVERLAY |
static SqlFunction |
SqlStdOperatorTable.POSITION |
static SqlFunction |
SqlStdOperatorTable.POWER
Uses SqlOperatorTable.useDouble for its return type since we don't know
what the result type will be by just looking at the operand types.
|
static SqlFunction |
SqlStdOperatorTable.SESSION_USER
The
SESSION_USER function. |
static SqlFunction |
SqlStdOperatorTable.SQRT |
static SqlFunction |
SqlStdOperatorTable.SUBSTRING
The character substring function:
SUBSTRING(string FROM start [FOR
length]). |
static SqlFunction |
SqlStdOperatorTable.SYSTEM_USER
The
SYSTEM_USER function. |
static SqlFunction |
SqlStdOperatorTable.TRANSLATE |
static SqlFunction |
SqlStdOperatorTable.TRIM
The "TRIM" function.
|
static SqlFunction |
SqlStdOperatorTable.UPPER |
static SqlFunction |
SqlStdOperatorTable.USER
The
USER function. |
| Modifier and Type | Method and Description |
|---|---|
void |
ReflectiveSqlOperatorTable.register(SqlFunction function)
Registers a function in the table.
|
| 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 |
|---|---|
RelDataType |
SqlValidatorImpl.deriveConstructorType(SqlValidatorScope scope,
SqlCall call,
SqlFunction unresolvedConstructor,
SqlFunction resolvedConstructor,
List<RelDataType> argTypes) |
RelDataType |
SqlValidator.deriveConstructorType(SqlValidatorScope scope,
SqlCall call,
SqlFunction unresolvedConstructor,
SqlFunction resolvedConstructor,
List<RelDataType> argTypes)
Derives the type of a constructor.
|
CalciteException |
SqlValidatorImpl.handleUnresolvedFunction(SqlCall call,
SqlFunction unresolvedFunction,
List<RelDataType> argTypes) |
CalciteException |
SqlValidator.handleUnresolvedFunction(SqlCall call,
SqlFunction unresolvedFunction,
List<RelDataType> argTypes)
Handles a call to a function which cannot be resolved.
|
void |
SqlValidatorImpl.validateColumnListParams(SqlFunction function,
List<RelDataType> argTypes,
List<SqlNode> operands) |
void |
SqlValidator.validateColumnListParams(SqlFunction function,
List<RelDataType> argTypes,
List<SqlNode> operands)
Validates a COLUMN_LIST parameter
|
| Modifier and Type | Method and Description |
|---|---|
RexNode |
StandardConvertletTable.convertFunction(SqlRexContext cx,
SqlFunction fun,
SqlCall call) |
RexNode |
DefaultValueFactory.newAttributeInitializer(RelDataType type,
SqlFunction constructor,
int iAttribute,
List<RexNode> constructorArgs)
Creates an expression which evaluates to the initializer expression for a
particular attribute of a structured type.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.