| Package | Description |
|---|---|
| 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.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 | Class and Description |
|---|---|
class |
SqlBinaryStringLiteral
A binary (or hexadecimal) string literal.
|
class |
SqlCharStringLiteral
A character string literal.
|
class |
SqlDateLiteral
A SQL literal representing a DATE value, such as
DATE
'2004-10-22'. |
class |
SqlIntervalLiteral
A SQL literal representing a time interval.
|
class |
SqlNumericLiteral
A numeric SQL literal.
|
class |
SqlTimeLiteral
A SQL literal representing a TIME value, for example
TIME
'14:33:44.567'. |
class |
SqlTimestampLiteral
A SQL literal representing a TIMESTAMP value, for example
TIMESTAMP
'1969-07-21 03:15 GMT'. |
| Modifier and Type | Method and Description |
|---|---|
static SqlLiteral |
SqlUtil.concatenateLiterals(List<SqlLiteral> lits)
Concatenates string literals.
|
static SqlLiteral |
SqlLiteral.createBoolean(boolean b,
SqlParserPos pos)
Creates a boolean literal.
|
static SqlLiteral |
SqlLiteral.createNull(SqlParserPos pos)
Creates a NULL literal.
|
static SqlLiteral |
SqlLiteral.createSample(SqlSampleSpec sampleSpec,
SqlParserPos pos)
Creates a literal which represents a sample specification.
|
static SqlLiteral |
SqlLiteral.createSymbol(SqlLiteral.SqlSymbol o,
SqlParserPos pos)
Creates a literal which represents a parser symbol, for example the
TRAILING keyword in the call Trim(TRAILING 'x' FROM
'Hello world!'). |
static SqlLiteral |
SqlLiteral.createUnknown(SqlParserPos pos) |
SqlLiteral |
SqlJoin.getConditionTypeNode() |
SqlLiteral |
SqlCall.getFunctionQuantifier() |
SqlLiteral |
SqlBasicCall.getFunctionQuantifier() |
SqlLiteral |
SqlJoin.getJoinTypeNode() |
SqlLiteral |
SqlJoin.isNaturalNode() |
SqlLiteral |
SemiJoinType.symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this
condition type keyword at a particular position in the parsed
text.
|
SqlLiteral |
SqlInsertKeyword.symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this keyword
at a particular position in the parsed text.
|
SqlLiteral |
SqlSelectKeyword.symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this keyword
at a particular position in the parsed text.
|
SqlLiteral |
SqlExplain.Depth.symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this symbol
at a particular position in the parsed text.
|
SqlLiteral |
SqlExplainLevel.symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this symbol at
a particular position in the parsed text.
|
SqlLiteral |
JoinConditionType.symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this join
type at a particular position in the parsed text.
|
SqlLiteral |
JoinType.symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this
condition type keyword at a particular position in the parsed
text.
|
static SqlLiteral |
SqlLiteral.unchain(SqlNode node)
Converts a chained string literals into regular literals; returns regular
literals unchanged.
|
SqlLiteral |
SqlLiteral.unescapeUnicode(char unicodeEscapeChar)
Transforms this literal (which must be of type character) into a new one
in which 4-digit Unicode escape sequences have been replaced with the
corresponding Unicode characters.
|
| Modifier and Type | Method and Description |
|---|---|
static SqlWindow |
SqlWindow.create(SqlIdentifier declName,
SqlIdentifier refName,
SqlNodeList partitionList,
SqlNodeList orderList,
SqlLiteral isRows,
SqlNode lowerBound,
SqlNode upperBound,
SqlLiteral allowPartial,
SqlParserPos pos) |
static SqlNode |
SqlWindow.createBound(SqlLiteral range) |
SqlCall |
SqlOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands)
Creates a call to this operand with an array of operands.
|
SqlCall |
SqlJdbcFunctionCall.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlJoin.SqlJoinOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlSelectOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.calcite.sql.SqlAbstractStringLiteral |
SqlCharStringLiteral.concat1(List<SqlLiteral> literals) |
protected org.apache.calcite.sql.SqlAbstractStringLiteral |
SqlBinaryStringLiteral.concat1(List<SqlLiteral> literals) |
static SqlLiteral |
SqlUtil.concatenateLiterals(List<SqlLiteral> lits)
Concatenates string literals.
|
| Constructor and Description |
|---|
SqlBasicCall(SqlOperator operator,
SqlNode[] operands,
SqlParserPos pos,
boolean expanded,
SqlLiteral functionQualifier) |
SqlExplain(SqlParserPos pos,
SqlNode explicandum,
SqlLiteral detailLevel,
SqlLiteral depth,
SqlLiteral asXml,
int dynamicParameterCount) |
SqlJoin(SqlParserPos pos,
SqlNode left,
SqlLiteral natural,
SqlLiteral joinType,
SqlNode right,
SqlLiteral conditionType,
SqlNode condition) |
SqlWindow(SqlParserPos pos,
SqlIdentifier declName,
SqlIdentifier refName,
SqlNodeList partitionList,
SqlNodeList orderList,
SqlLiteral isRows,
SqlNode lowerBound,
SqlNode upperBound,
SqlLiteral allowPartial)
Creates a window.
|
| Modifier and Type | Method and Description |
|---|---|
static SqlLiteral |
SqlLiteralChainOperator.concatenateOperands(SqlCall call)
Concatenates the operands of a call to this operator.
|
SqlLiteral |
SqlTrimFunction.Flag.symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this flag
at a particular position in the parsed text.
|
| Modifier and Type | Method and Description |
|---|---|
SqlCall |
SqlCaseOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlTrimFunction.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
| 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 |
|---|---|
SqlLiteral |
SqlParserImpl.DateTimeLiteral()
Parses a date/time literal.
|
SqlLiteral |
SqlParserImpl.IntervalLiteral()
Parses an interval literal.
|
SqlLiteral |
SqlParserImpl.JoinType() |
SqlLiteral |
SqlParserImpl.Natural() |
SqlLiteral |
SqlParserImpl.NumericLiteral()
Parses a numeric literal (can be signed)
|
SqlLiteral |
SqlParserImpl.SpecialLiteral()
Parse a special literal keyword
|
| Modifier and Type | Method and Description |
|---|---|
void |
SqlParserImpl.SqlInsertKeywords(List<SqlLiteral> keywords) |
void |
SqlParserImpl.SqlSelectKeywords(List<SqlLiteral> keywords) |
| Modifier and Type | Method and Description |
|---|---|
SqlLiteral |
SqlTypeName.createLiteral(Object o,
SqlParserPos pos) |
| Modifier and Type | Method and Description |
|---|---|
R |
SqlVisitor.visit(SqlLiteral literal)
Visits a literal.
|
SqlNode |
SqlShuttle.visit(SqlLiteral literal) |
R |
SqlBasicVisitor.visit(SqlLiteral literal) |
| Modifier and Type | Method and Description |
|---|---|
void |
SqlValidatorImpl.validateLiteral(SqlLiteral literal) |
void |
SqlValidator.validateLiteral(SqlLiteral literal)
Validates a literal.
|
SqlNode |
SqlValidatorUtil.DeepCopier.visit(SqlLiteral literal) |
| Modifier and Type | Method and Description |
|---|---|
RexNode |
SqlRexContext.convertLiteral(SqlLiteral literal)
Converts a literal.
|
RexNode |
SqlToRelConverter.Blackboard.convertLiteral(SqlLiteral literal) |
RexNode |
SqlNodeToRexConverter.convertLiteral(SqlRexContext cx,
SqlLiteral literal)
Converts a
SQL literal to a
REX literal. |
RexNode |
SqlNodeToRexConverterImpl.convertLiteral(SqlRexContext cx,
SqlLiteral literal) |
RexNode |
SqlToRelConverter.Blackboard.visit(SqlLiteral literal) |
Void |
SqlToRelConverter.AggConverter.visit(SqlLiteral lit) |
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.