| Package | Description |
|---|---|
| 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.parser.impl |
Contains generated code for the
Calcite 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 |
|---|---|
RelDataType |
CalciteCatalogReader.getNamedType(SqlIdentifier typeName) |
void |
CalciteCatalogReader.lookupOperatorOverloads(SqlIdentifier opName,
SqlFunctionCategory category,
SqlSyntax syntax,
List<SqlOperator> operatorList) |
| 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 |
|---|---|
SqlIdentifier |
SqlWithItem.name |
| Modifier and Type | Method and Description |
|---|---|
SqlIdentifier |
SqlMerge.getAlias() |
SqlIdentifier |
SqlDelete.getAlias() |
SqlIdentifier |
SqlUpdate.getAlias() |
SqlIdentifier |
SqlDataTypeSpec.getCollectionsTypeName() |
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 |
SqlFunction.getNameAsId() |
SqlIdentifier |
SqlWindow.getRefName() |
SqlIdentifier |
SqlFunction.getSqlIdentifier() |
SqlIdentifier |
SqlDataTypeSpec.getTypeName() |
SqlIdentifier |
SqlIdentifier.plus(String name,
SqlParserPos pos)
Creates an identifier that consists of this identifier plus a name segment.
|
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. |
| 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 SqlFunction |
SqlUtil.lookupRoutine(SqlOperatorTable opTab,
SqlIdentifier funcName,
List<RelDataType> argTypes,
SqlFunctionCategory category)
Looks up a (possibly overloaded) routine based on name and argument
types.
|
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.
|
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)
Determine if there is a routine matching the given name and number of
arguments.
|
void |
SqlUpdate.setAlias(SqlIdentifier alias) |
void |
SqlWindow.setDeclName(SqlIdentifier declName) |
| Constructor and Description |
|---|
SqlAggFunction(String name,
SqlIdentifier sqlIdentifier,
SqlKind kind,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
SqlFunctionCategory funcType)
Creates a user-defined SqlAggFunction.
|
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) |
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) |
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 |
|---|---|
void |
SqlAdvisorValidator.validateIdentifier(SqlIdentifier id,
SqlValidatorScope scope)
Registers the identifier and its scope into a map keyed by ParserPostion.
|
| Modifier and Type | Method and Description |
|---|---|
protected SqlCall |
SqlAbstractParserImpl.createCall(SqlIdentifier funName,
SqlParserPos pos,
SqlFunctionCategory funcType,
SqlLiteral functionQualifier,
SqlNode[] operands)
Creates a call.
|
| Modifier and Type | Method and Description |
|---|---|
SqlIdentifier |
SqlParserImpl.CollectionsTypeName() |
SqlIdentifier |
SqlParserImpl.CompoundIdentifier()
Parses a compound identifier.
|
SqlIdentifier |
SqlParserImpl.ContextVariable() |
SqlIdentifier |
SqlParserImpl.FunctionName()
Parses the name of a function (either a compound identifier or
a reserved word which can be used as a function name).
|
SqlIdentifier |
SqlParserImpl.ReservedFunctionName()
Parses a reserved word which is used as the name of a function.
|
SqlIdentifier |
SqlParserImpl.SimpleIdentifier()
Parses a simple identifier as an SqlIdentifier.
|
SqlIdentifier |
SqlParserImpl.TypeName() |
| Modifier and Type | Method and Description |
|---|---|
SqlUpdate |
SqlParserImpl.WhenMatchedClause(SqlNode table,
SqlIdentifier alias) |
| 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.
|
SqlNode |
SqlShuttle.visit(SqlIdentifier id) |
R |
SqlBasicVisitor.visit(SqlIdentifier id) |
| Modifier and Type | Field and Description |
|---|---|
SqlIdentifier |
SqlValidatorImpl.IdInfo.id |
SqlIdentifier |
SqlQualified.identifier |
| Modifier and Type | Method and Description |
|---|---|
SqlIdentifier |
IdentifierNamespace.getId() |
SqlIdentifier |
SqlIdentifierMoniker.toIdentifier() |
SqlIdentifier |
SqlMoniker.toIdentifier()
Creates a
SqlIdentifier containing the fully-qualified name. |
SqlIdentifier |
SqlMonikerImpl.toIdentifier() |
| Modifier and Type | Method and Description |
|---|---|
protected static Pair<SqlIdentifier,SqlNodeList> |
IdentifierNamespace.split(SqlNode node) |
| Modifier and Type | Method and Description |
|---|---|
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) |
SqlQualified |
SqlValidatorScope.fullyQualify(SqlIdentifier identifier)
Converts an identifier into a fully-qualified identifier.
|
SqlQualified |
DelegatingScope.fullyQualify(SqlIdentifier identifier)
Converts an identifier into a fully-qualified identifier.
|
SqlQualified |
OrderByScope.fullyQualify(SqlIdentifier identifier) |
SqlQualified |
ParameterScope.fullyQualify(SqlIdentifier identifier) |
RelDataType |
SqlValidatorCatalogReader.getNamedType(SqlIdentifier typeName)
Finds a user-defined type with the given name, possibly qualified.
|
RelDataType |
DelegatingSqlValidatorCatalogReader.getNamedType(SqlIdentifier typeName) |
protected SqlWindow |
SqlValidatorImpl.getWindowByName(SqlIdentifier id,
SqlValidatorScope scope) |
void |
SqlValidatorImpl.validateIdentifier(SqlIdentifier id,
SqlValidatorScope scope) |
void |
SqlValidator.validateIdentifier(SqlIdentifier id,
SqlValidatorScope scope)
Resolves an identifier to a fully-qualified name.
|
SqlNode |
SqlValidatorUtil.DeepCopier.visit(SqlIdentifier id) |
| Modifier and Type | Method and Description |
|---|---|
RexNode |
SqlToRelConverter.Blackboard.visit(SqlIdentifier id) |
Void |
SqlToRelConverter.AggConverter.visit(SqlIdentifier id) |
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.