| Package | Description |
|---|---|
| org.apache.calcite.adapter.jdbc |
Query provider based on a JDBC data source.
|
| org.apache.calcite.prepare |
Preparation of queries (parsing, planning and implementation).
|
| org.apache.calcite.rel.type |
Defines a type system for relational expressions.
|
| org.apache.calcite.sql |
Provides a SQL parser and object model.
|
| org.apache.calcite.sql.advise |
Provides hints and corrections for editing SQL statements.
|
| 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 | Method and Description |
|---|---|
(package private) SqlIdentifier |
JdbcTable.tableName() |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
CalciteCatalogReader.getNamedType(SqlIdentifier typeName) |
void |
CalciteCatalogReader.lookupOperatorOverloads(SqlIdentifier opName,
SqlFunctionCategory category,
SqlSyntax syntax,
List<SqlOperator> operatorList) |
private static SqlOperator |
CalciteCatalogReader.toOp(RelDataTypeFactory typeFactory,
SqlIdentifier name,
Function function)
Converts a function to a
SqlOperator. |
private SqlOperator |
CalciteCatalogReader.toOp(SqlIdentifier name,
Function function) |
| Modifier and Type | Method and Description |
|---|---|
SqlIdentifier |
RelDataTypeImpl.getSqlIdentifier() |
SqlIdentifier |
RelDataType.getSqlIdentifier()
Gets the
SqlIdentifier associated with this type. |
| Modifier and Type | Field and Description |
|---|---|
(package private) SqlIdentifier |
SqlUpdate.alias |
(package private) SqlIdentifier |
SqlMerge.alias |
(package private) SqlIdentifier |
SqlDelete.alias |
private SqlIdentifier |
SqlDataTypeSpec.collectionsTypeName |
(package private) SqlIdentifier |
SqlDescribeTable.column |
(package private) SqlIdentifier |
SqlWindow.declName
The name of the window being declared.
|
SqlIdentifier |
SqlWithItem.name |
(package private) SqlIdentifier |
SqlSetOption.name
Name of the option as an
SqlIdentifier
with one or more parts. |
(package private) SqlIdentifier |
SqlWindow.refName
The name of the window being referenced, or null.
|
(package private) SqlIdentifier |
SqlDescribeSchema.schema |
private SqlIdentifier |
SqlFunction.sqlIdentifier |
(package private) SqlIdentifier |
SqlDescribeTable.table |
private SqlIdentifier |
SqlDataTypeSpec.typeName |
| Modifier and Type | Method and Description |
|---|---|
SqlIdentifier |
SqlIdentifier.add(int i,
String name,
SqlParserPos pos)
Returns an identifier that is the same as this except with a component
added at a given position.
|
SqlIdentifier |
SqlUpdate.getAlias() |
SqlIdentifier |
SqlMerge.getAlias() |
SqlIdentifier |
SqlDelete.getAlias() |
SqlIdentifier |
SqlDataTypeSpec.getCollectionsTypeName() |
SqlIdentifier |
SqlDescribeTable.getColumn() |
SqlIdentifier |
SqlIdentifier.getComponent(int ordinal)
Creates an identifier which contains only the
ordinalth
component of this compound identifier. |
SqlIdentifier |
SqlIdentifier.getComponent(int from,
int to) |
SqlIdentifier |
SqlWindow.getDeclName() |
SqlIdentifier |
SqlSetOption.getName() |
SqlIdentifier |
SqlOperator.getNameAsId()
Returns the fully-qualified name of this operator.
|
SqlIdentifier |
SqlFunction.getNameAsId() |
SqlIdentifier |
SqlWindow.getRefName() |
SqlIdentifier |
SqlDescribeSchema.getSchema() |
SqlIdentifier |
SqlFunction.getSqlIdentifier() |
SqlIdentifier |
SqlDescribeTable.getTable() |
SqlIdentifier |
SqlDataTypeSpec.getTypeName() |
SqlIdentifier |
SqlIdentifier.plus(String name,
SqlParserPos pos)
Creates an identifier that consists of this identifier plus a name segment.
|
SqlIdentifier |
SqlIdentifier.plusStar()
Creates an identifier that consists of this identifier plus a wildcard star.
|
SqlIdentifier |
SqlIdentifier.setName(int i,
String name)
Returns an identifier that is the same as this except one modified name.
|
SqlIdentifier |
SqlIdentifier.skipLast(int n)
Creates an identifier that consists of all but the last
n
name segments of this one. |
static SqlIdentifier |
SqlIdentifier.star(List<String> names,
SqlParserPos pos,
List<SqlParserPos> componentPositions)
Creates an identifier that ends in a wildcard star.
|
static SqlIdentifier |
SqlIdentifier.star(SqlParserPos pos)
Creates an identifier that is a singleton wildcard star.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SqlIdentifier.assignNamesFrom(SqlIdentifier other)
Copies names and components from another identifier.
|
static SqlWindow |
SqlWindow.create(SqlIdentifier declName,
SqlIdentifier refName,
SqlNodeList partitionList,
SqlNodeList orderList,
SqlLiteral isRows,
SqlNode lowerBound,
SqlNode upperBound,
SqlLiteral allowPartial,
SqlParserPos pos) |
void |
SqlOperatorTable.lookupOperatorOverloads(SqlIdentifier opName,
SqlFunctionCategory category,
SqlSyntax syntax,
List<SqlOperator> operatorList)
Retrieves a list of operators with a given name and syntax.
|
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.
|
private static Iterator<SqlOperator> |
SqlUtil.lookupSubjectRoutinesByName(SqlOperatorTable opTab,
SqlIdentifier funcName,
SqlSyntax syntax,
SqlFunctionCategory category) |
static SqlCall |
SqlUtil.makeCall(SqlOperatorTable opTab,
SqlIdentifier id)
If an identifier is a legitimate call to a function which has no
arguments and requires no parentheses (for example "CURRENT_USER"),
returns a call to that function, otherwise returns null.
|
static boolean |
SqlUtil.matchRoutinesByParameterCount(SqlOperatorTable opTab,
SqlIdentifier funcName,
List<RelDataType> argTypes,
SqlFunctionCategory category)
Determines whether there is a routine matching the given name and number
of arguments.
|
void |
SqlUpdate.setAlias(SqlIdentifier alias) |
void |
SqlWindow.setDeclName(SqlIdentifier declName) |
void |
SqlSetOption.setName(SqlIdentifier name) |
Void |
SqlUtil.Genealogist.visit(SqlIdentifier id) |
| 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.
|
SqlDataTypeSpec(SqlIdentifier typeName,
int precision,
int scale,
String charSetName,
TimeZone timeZone,
SqlParserPos pos)
Creates a type specification representing a regular, non-collection type.
|
SqlDataTypeSpec(SqlIdentifier collectionsTypeName,
SqlIdentifier typeName,
int precision,
int scale,
String charSetName,
SqlParserPos pos)
Creates a type specification representing a collection type.
|
SqlDataTypeSpec(SqlIdentifier collectionsTypeName,
SqlIdentifier typeName,
int precision,
int scale,
String charSetName,
TimeZone timeZone,
Boolean nullable,
SqlParserPos pos)
Creates a type specification.
|
SqlDelete(SqlParserPos pos,
SqlNode targetTable,
SqlNode condition,
SqlSelect sourceSelect,
SqlIdentifier alias) |
SqlDescribeSchema(SqlParserPos pos,
SqlIdentifier schema)
Creates a SqlDescribeSchema.
|
SqlDescribeTable(SqlParserPos pos,
SqlIdentifier table,
SqlIdentifier column)
Creates a SqlDescribeTable.
|
SqlFunction(SqlIdentifier sqlIdentifier,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
List<RelDataType> paramTypes,
SqlFunctionCategory funcType)
Creates a placeholder SqlFunction for an invocation of a function with a
possibly qualified name.
|
SqlFunction(String name,
SqlIdentifier sqlIdentifier,
SqlKind kind,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
List<RelDataType> paramTypes,
SqlFunctionCategory category)
Internal constructor.
|
SqlMerge(SqlParserPos pos,
SqlNode targetTable,
SqlNode condition,
SqlNode source,
SqlUpdate updateCall,
SqlInsert insertCall,
SqlSelect sourceSelect,
SqlIdentifier alias) |
SqlSetOption(SqlParserPos pos,
String scope,
SqlIdentifier name,
SqlNode value)
Creates a node.
|
SqlUnresolvedFunction(SqlIdentifier sqlIdentifier,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
List<RelDataType> paramTypes,
SqlFunctionCategory funcType)
Creates a placeholder SqlUnresolvedFunction for an invocation of a function
with a possibly qualified name.
|
SqlUpdate(SqlParserPos pos,
SqlNode targetTable,
SqlNodeList targetColumnList,
SqlNodeList sourceExpressionList,
SqlNode condition,
SqlSelect sourceSelect,
SqlIdentifier alias) |
SqlWindow(SqlParserPos pos,
SqlIdentifier declName,
SqlIdentifier refName,
SqlNodeList partitionList,
SqlNodeList orderList,
SqlLiteral isRows,
SqlNode lowerBound,
SqlNode upperBound,
SqlLiteral allowPartial)
Creates a window.
|
SqlWithItem(SqlParserPos pos,
SqlIdentifier name,
SqlNodeList columnList,
SqlNode query) |
| Modifier and Type | Method and Description |
|---|---|
private void |
SqlAdvisorValidator.registerId(SqlIdentifier id,
SqlValidatorScope scope) |
void |
SqlAdvisorValidator.validateIdentifier(SqlIdentifier id,
SqlValidatorScope scope)
Registers the identifier and its scope into a map keyed by ParserPosition.
|
| Modifier and Type | Method and Description |
|---|---|
protected SqlCall |
SqlAbstractParserImpl.createCall(SqlIdentifier funName,
SqlParserPos pos,
SqlFunctionCategory funcType,
SqlLiteral functionQualifier,
Iterable<? extends SqlNode> operands)
Creates a call.
|
protected SqlCall |
SqlAbstractParserImpl.createCall(SqlIdentifier funName,
SqlParserPos pos,
SqlFunctionCategory funcType,
SqlLiteral functionQualifier,
SqlNode[] operands)
Creates a call.
|
| Modifier and Type | Field and Description |
|---|---|
private SqlIdentifier |
ObjectSqlType.sqlIdentifier |
| Modifier and Type | Method and Description |
|---|---|
SqlIdentifier |
ObjectSqlType.getSqlIdentifier() |
| Constructor and Description |
|---|
ObjectSqlType(SqlTypeName typeName,
SqlIdentifier sqlIdentifier,
boolean nullable,
List<? extends RelDataTypeField> fields,
RelDataTypeComparability comparability)
Constructs an object type.
|
| 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) |
R |
SqlVisitor.visit(SqlIdentifier id)
Visits an identifier.
|
R |
SqlBasicVisitor.visit(SqlIdentifier id) |
SqlNode |
SqlShuttle.visit(SqlIdentifier id) |
| Modifier and Type | Field and Description |
|---|---|
private SqlIdentifier |
SqlIdentifierMoniker.id |
private SqlIdentifier |
IdentifierNamespace.id |
SqlIdentifier |
SqlValidatorImpl.IdInfo.id |
SqlIdentifier |
SqlQualified.identifier |
| Modifier and Type | Method and Description |
|---|---|
SqlIdentifier |
IdentifierNamespace.getId() |
SqlIdentifier |
SqlMonikerImpl.toIdentifier() |
SqlIdentifier |
SqlIdentifierMoniker.toIdentifier() |
SqlIdentifier |
SqlMoniker.toIdentifier()
Creates a
SqlIdentifier containing the fully-qualified name. |
| Modifier and Type | Method and Description |
|---|---|
private static List<Pair<SqlIdentifier,SqlDataTypeSpec>> |
SqlValidatorUtil.pairs(SqlNodeList extendedColumns)
Converts a list of extended columns
(of the form [name0, type0, name1, type1, ...])
into a list of (name, type) pairs.
|
protected static Pair<SqlIdentifier,SqlNodeList> |
IdentifierNamespace.split(SqlNode node) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
SqlValidatorImpl.addOrExpandField(List<SqlNode> selectItems,
Set<String> aliases,
List<Map.Entry<String,RelDataType>> types,
boolean includeSystemVars,
SelectScope scope,
SqlIdentifier id,
RelDataTypeField field) |
private void |
SqlValidatorImpl.checkRollUpInUsing(SqlIdentifier identifier,
SqlNode leftOrRight) |
static List<Object> |
SqlUserDefinedTableMacro.convertArguments(RelDataTypeFactory typeFactory,
List<SqlNode> operandList,
Function function,
SqlIdentifier opName,
boolean failOnNonLiteral)
Converts arguments from
SqlNode to
java object format. |
static SqlQualified |
SqlQualified.create(SqlValidatorScope scope,
int prefixLength,
SqlValidatorNamespace namespace,
SqlIdentifier identifier) |
private Pair<String,String> |
SqlValidatorImpl.findTableColumnPair(SqlIdentifier identifier,
SqlValidatorScope scope) |
SqlQualified |
OrderByScope.fullyQualify(SqlIdentifier identifier) |
SqlQualified |
SqlValidatorScope.fullyQualify(SqlIdentifier identifier)
Converts an identifier into a fully-qualified identifier.
|
SqlQualified |
ParameterScope.fullyQualify(SqlIdentifier identifier) |
SqlQualified |
EmptyScope.fullyQualify(SqlIdentifier identifier) |
SqlQualified |
DelegatingScope.fullyQualify(SqlIdentifier identifier)
Converts an identifier into a fully-qualified identifier.
|
RelDataType |
DelegatingSqlValidatorCatalogReader.getNamedType(SqlIdentifier typeName) |
RelDataType |
SqlValidatorCatalogReader.getNamedType(SqlIdentifier typeName)
Finds a user-defined type with the given name, possibly qualified.
|
private SqlValidatorNamespace |
SqlValidatorImpl.getNamespace(SqlIdentifier id,
DelegatingScope scope) |
static RelDataTypeField |
SqlValidatorUtil.getTargetField(RelDataType rowType,
RelDataTypeFactory typeFactory,
SqlIdentifier id,
SqlValidatorCatalogReader catalogReader,
RelOptTable table)
Resolve a target column name in the target table.
|
protected SqlWindow |
SqlValidatorImpl.getWindowByName(SqlIdentifier id,
SqlValidatorScope scope) |
private boolean |
SqlValidatorImpl.isRolledUpColumn(SqlIdentifier identifier,
SqlValidatorScope scope) |
private boolean |
SqlValidatorImpl.isRolledUpColumnAllowedInAgg(SqlIdentifier identifier,
SqlValidatorScope scope,
SqlCall aggCall,
SqlNode parent) |
private SqlValidatorNamespace |
IdentifierNamespace.resolveImpl(SqlIdentifier id) |
void |
SqlValidator.validateIdentifier(SqlIdentifier id,
SqlValidatorScope scope)
Resolves an identifier to a fully-qualified name.
|
void |
SqlValidatorImpl.validateIdentifier(SqlIdentifier id,
SqlValidatorScope scope) |
void |
SqlValidator.validateSequenceValue(SqlValidatorScope scope,
SqlIdentifier id) |
void |
SqlValidatorImpl.validateSequenceValue(SqlValidatorScope scope,
SqlIdentifier id) |
private RelDataType |
SqlValidatorImpl.validateUsingCol(SqlIdentifier id,
SqlNode leftOrRight) |
SqlNode |
SqlValidatorUtil.DeepCopier.visit(SqlIdentifier id)
Deprecated.
|
Void |
AggChecker.visit(SqlIdentifier id) |
Void |
SqlValidatorImpl.PatternVarVisitor.visit(SqlIdentifier id) |
RelDataType |
SqlValidatorImpl.DeriveTypeVisitor.visit(SqlIdentifier id) |
SqlNode |
SqlValidatorImpl.Expander.visit(SqlIdentifier id) |
SqlNode |
SqlValidatorImpl.OrderExpressionExpander.visit(SqlIdentifier id) |
SqlNode |
SqlValidatorImpl.ExtendedExpander.visit(SqlIdentifier id) |
SqlNode |
SqlValidatorImpl.NavigationExpander.visit(SqlIdentifier id) |
SqlNode |
SqlValidatorImpl.NavigationReplacer.visit(SqlIdentifier id) |
Set<String> |
SqlValidatorImpl.PatternValidator.visit(SqlIdentifier identifier) |
| Modifier and Type | Method and Description |
|---|---|
private RexNode |
SqlToRelConverter.convertIdentifier(SqlToRelConverter.Blackboard bb,
SqlIdentifier identifier)
Converts an identifier into an expression in a given scope.
|
private void |
SqlToRelConverter.convertIdentifier(SqlToRelConverter.Blackboard bb,
SqlIdentifier id,
SqlNodeList extendedColumns) |
RexNode |
SqlToRelConverter.Blackboard.visit(SqlIdentifier id) |
Void |
SqlToRelConverter.AggConverter.visit(SqlIdentifier id) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.