| Package | Description |
|---|---|
| org.apache.calcite.rel.rel2sql |
Translates a relational expression to SQL parse tree.
|
| 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.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.validate |
SQL validation.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| Modifier and Type | Field and Description |
|---|---|
static SqlParserPos |
SqlImplementor.POS |
| Modifier and Type | Field and Description |
|---|---|
protected SqlParserPos |
SqlNode.pos |
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.ImmutableList<SqlParserPos> |
SqlIdentifier.componentPositions
A list of the positions of the components of compound identifiers.
|
| Modifier and Type | Method and Description |
|---|---|
SqlParserPos |
SqlIdentifier.getComponentParserPosition(int i)
Returns the position of the
ith component of a compound
identifier, or the position of the whole identifier if that information
is not present. |
SqlParserPos |
SqlNode.getParserPosition() |
SqlParserPos |
SqlSpecialOperator.TokenSequence.pos(int i) |
| 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.
|
private void |
SqlIntervalQualifier.checkLeadFieldInRange(RelDataTypeSystem typeSystem,
int sign,
BigDecimal value,
org.apache.calcite.avatica.util.TimeUnit unit,
SqlParserPos pos) |
SqlBinaryStringLiteral |
SqlBinaryStringLiteral.clone(SqlParserPos pos) |
SqlNode |
SqlIdentifier.clone(SqlParserPos pos) |
SqlDateLiteral |
SqlDateLiteral.clone(SqlParserPos pos) |
SqlTimestampLiteral |
SqlTimestampLiteral.clone(SqlParserPos pos) |
SqlNumericLiteral |
SqlNumericLiteral.clone(SqlParserPos pos) |
SqlTimeLiteral |
SqlTimeLiteral.clone(SqlParserPos pos) |
SqlNode |
SqlDynamicParam.clone(SqlParserPos pos) |
SqlNode |
SqlBasicCall.clone(SqlParserPos pos) |
SqlNode |
SqlCall.clone(SqlParserPos pos) |
SqlCharStringLiteral |
SqlCharStringLiteral.clone(SqlParserPos pos) |
SqlLiteral |
SqlLiteral.clone(SqlParserPos pos) |
SqlNode |
SqlIntervalQualifier.clone(SqlParserPos pos) |
abstract SqlNode |
SqlNode.clone(SqlParserPos pos)
Clones a SqlNode with a different position.
|
SqlNodeList |
SqlNodeList.clone(SqlParserPos pos) |
SqlIntervalLiteral |
SqlIntervalLiteral.clone(SqlParserPos pos) |
SqlNode |
SqlDataTypeSpec.clone(SqlParserPos pos) |
static SqlWindow |
SqlWindow.create(SqlIdentifier declName,
SqlIdentifier refName,
SqlNodeList partitionList,
SqlNodeList orderList,
SqlLiteral isRows,
SqlNode lowerBound,
SqlNode upperBound,
SqlLiteral allowPartial,
SqlParserPos pos) |
static SqlNumericLiteral |
SqlLiteral.createApproxNumeric(String s,
SqlParserPos pos) |
static SqlBinaryStringLiteral |
SqlLiteral.createBinaryString(byte[] bytes,
SqlParserPos pos)
Creates a literal like X'ABAB' from an array of bytes.
|
static SqlBinaryStringLiteral |
SqlLiteral.createBinaryString(String s,
SqlParserPos pos)
Creates a literal like X'ABAB'.
|
static SqlLiteral |
SqlLiteral.createBoolean(boolean b,
SqlParserPos pos)
Creates a boolean literal.
|
SqlCall |
SqlOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands)
Creates a call to this operand with an array of operands.
|
SqlCall |
SqlWindow.SqlWindowOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlWithItem.SqlWithItemOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlSelectOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlMatchRecognize.SqlMatchRecognizeOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlJoin.SqlJoinOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlWith.SqlWithOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlJdbcFunctionCall.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlSelect |
SqlSelectOperator.createCall(SqlNodeList keywordList,
SqlNodeList selectList,
SqlNode fromClause,
SqlNode whereClause,
SqlNodeList groupBy,
SqlNode having,
SqlNodeList windowDecls,
SqlNodeList orderBy,
SqlNode offset,
SqlNode fetch,
SqlParserPos pos)
Creates a call to the
SELECT operator. |
SqlCall |
SqlOperator.createCall(SqlParserPos pos,
List<? extends SqlNode> operandList)
Creates a call to this operand with a list of operands.
|
SqlCall |
SqlOperator.createCall(SqlParserPos pos,
SqlNode... operands)
Creates a call to this operand with an array of operands.
|
SqlCall |
SqlJdbcFunctionCall.MakeCall.createCall(SqlParserPos pos,
SqlNode... operands)
Creates and return a
SqlCall. |
SqlCall |
SqlJdbcFunctionCall.SimpleMakeCall.createCall(SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlJdbcFunctionCall.PermutingMakeCall.createCall(SqlParserPos pos,
SqlNode... operands) |
static SqlCharStringLiteral |
SqlLiteral.createCharString(String s,
SqlParserPos pos)
Creates a string literal in the system character set.
|
static SqlCharStringLiteral |
SqlLiteral.createCharString(String s,
String charSet,
SqlParserPos pos)
Creates a string literal, with optional character-set.
|
static SqlNode |
SqlWindow.createCurrentRow(SqlParserPos pos) |
SqlNode |
SqlJdbcDataTypeName.createDataType(SqlParserPos pos)
Creates a parse tree node for a type identifier of this name.
|
static SqlDateLiteral |
SqlLiteral.createDate(Calendar calendar,
SqlParserPos pos)
Deprecated.
|
static SqlDateLiteral |
SqlLiteral.createDate(DateString date,
SqlParserPos pos) |
static SqlNumericLiteral |
SqlLiteral.createExactNumeric(String s,
SqlParserPos pos) |
static SqlNode |
SqlWindow.createFollowing(SqlNode e,
SqlParserPos pos) |
static SqlIntervalLiteral |
SqlLiteral.createInterval(int sign,
String intervalStr,
SqlIntervalQualifier intervalQualifier,
SqlParserPos pos)
Creates an interval literal.
|
static SqlNumericLiteral |
SqlLiteral.createNegative(SqlNumericLiteral num,
SqlParserPos pos) |
static SqlLiteral |
SqlLiteral.createNull(SqlParserPos pos)
Creates a NULL literal.
|
static SqlNode |
SqlWindow.createPreceding(SqlNode e,
SqlParserPos pos) |
static SqlLiteral |
SqlLiteral.createSample(SqlSampleSpec sampleSpec,
SqlParserPos pos)
Creates a literal which represents a sample specification.
|
static SqlLiteral |
SqlLiteral.createSymbol(Enum<?> 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 SqlTimeLiteral |
SqlLiteral.createTime(Calendar calendar,
int precision,
SqlParserPos pos)
Deprecated.
|
static SqlTimeLiteral |
SqlLiteral.createTime(TimeString t,
int precision,
SqlParserPos pos) |
static SqlTimestampLiteral |
SqlLiteral.createTimestamp(Calendar calendar,
int precision,
SqlParserPos pos)
Deprecated.
|
static SqlTimestampLiteral |
SqlLiteral.createTimestamp(TimestampString ts,
int precision,
SqlParserPos pos) |
static SqlNode |
SqlWindow.createUnboundedFollowing(SqlParserPos pos) |
static SqlNode |
SqlWindow.createUnboundedPreceding(SqlParserPos pos) |
static SqlLiteral |
SqlLiteral.createUnknown(SqlParserPos pos) |
int[] |
SqlIntervalQualifier.evaluateIntervalLiteral(String value,
SqlParserPos pos,
RelDataTypeSystem typeSystem)
Validates an INTERVAL literal according to the rules specified by the
interval qualifier.
|
private int[] |
SqlIntervalQualifier.evaluateIntervalLiteralAsDay(RelDataTypeSystem typeSystem,
int sign,
String value,
String originalValue,
SqlParserPos pos)
Validates an INTERVAL literal against a DAY interval qualifier.
|
private int[] |
SqlIntervalQualifier.evaluateIntervalLiteralAsDayToHour(RelDataTypeSystem typeSystem,
int sign,
String value,
String originalValue,
SqlParserPos pos)
Validates an INTERVAL literal against a DAY TO HOUR interval qualifier.
|
private int[] |
SqlIntervalQualifier.evaluateIntervalLiteralAsDayToMinute(RelDataTypeSystem typeSystem,
int sign,
String value,
String originalValue,
SqlParserPos pos)
Validates an INTERVAL literal against a DAY TO MINUTE interval qualifier.
|
private int[] |
SqlIntervalQualifier.evaluateIntervalLiteralAsDayToSecond(RelDataTypeSystem typeSystem,
int sign,
String value,
String originalValue,
SqlParserPos pos)
Validates an INTERVAL literal against a DAY TO SECOND interval qualifier.
|
private int[] |
SqlIntervalQualifier.evaluateIntervalLiteralAsHour(RelDataTypeSystem typeSystem,
int sign,
String value,
String originalValue,
SqlParserPos pos)
Validates an INTERVAL literal against an HOUR interval qualifier.
|
private int[] |
SqlIntervalQualifier.evaluateIntervalLiteralAsHourToMinute(RelDataTypeSystem typeSystem,
int sign,
String value,
String originalValue,
SqlParserPos pos)
Validates an INTERVAL literal against an HOUR TO MINUTE interval
qualifier.
|
private int[] |
SqlIntervalQualifier.evaluateIntervalLiteralAsHourToSecond(RelDataTypeSystem typeSystem,
int sign,
String value,
String originalValue,
SqlParserPos pos)
Validates an INTERVAL literal against an HOUR TO SECOND interval
qualifier.
|
private int[] |
SqlIntervalQualifier.evaluateIntervalLiteralAsMinute(RelDataTypeSystem typeSystem,
int sign,
String value,
String originalValue,
SqlParserPos pos)
Validates an INTERVAL literal against an MINUTE interval qualifier.
|
private int[] |
SqlIntervalQualifier.evaluateIntervalLiteralAsMinuteToSecond(RelDataTypeSystem typeSystem,
int sign,
String value,
String originalValue,
SqlParserPos pos)
Validates an INTERVAL literal against an MINUTE TO SECOND interval
qualifier.
|
private int[] |
SqlIntervalQualifier.evaluateIntervalLiteralAsMonth(RelDataTypeSystem typeSystem,
int sign,
String value,
String originalValue,
SqlParserPos pos)
Validates an INTERVAL literal against a MONTH interval qualifier.
|
private int[] |
SqlIntervalQualifier.evaluateIntervalLiteralAsSecond(RelDataTypeSystem typeSystem,
int sign,
String value,
String originalValue,
SqlParserPos pos)
Validates an INTERVAL literal against an SECOND interval qualifier.
|
private int[] |
SqlIntervalQualifier.evaluateIntervalLiteralAsYear(RelDataTypeSystem typeSystem,
int sign,
String value,
String originalValue,
SqlParserPos pos)
Validates an INTERVAL literal against a YEAR interval qualifier.
|
private int[] |
SqlIntervalQualifier.evaluateIntervalLiteralAsYearToMonth(RelDataTypeSystem typeSystem,
int sign,
String value,
String originalValue,
SqlParserPos pos)
Validates an INTERVAL literal against a YEAR TO MONTH interval qualifier.
|
private CalciteContextException |
SqlIntervalQualifier.fieldExceedsPrecisionException(SqlParserPos pos,
int sign,
BigDecimal value,
org.apache.calcite.avatica.util.TimeUnit type,
int precision) |
void |
SqlCall.findValidOptions(SqlValidator validator,
SqlValidatorScope scope,
SqlParserPos pos,
Collection<SqlMoniker> hintList) |
void |
SqlNode.findValidOptions(SqlValidator validator,
SqlValidatorScope scope,
SqlParserPos pos,
Collection<SqlMoniker> hintList)
Lists all the valid alternatives for this node if the parse position of
the node matches that of pos.
|
private CalciteContextException |
SqlIntervalQualifier.invalidValueException(SqlParserPos pos,
String value) |
static CalciteContextException |
SqlUtil.newContextException(SqlParserPos pos,
Resources.ExInst<?> e)
Wraps an exception with context.
|
static CalciteException |
SqlUtil.newContextException(SqlParserPos pos,
Resources.ExInst<?> e,
String inputText)
Wraps an exception with context.
|
SqlIdentifier |
SqlIdentifier.plus(String name,
SqlParserPos pos)
Creates an identifier that consists of this identifier plus a name segment.
|
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.
|
SqlLiteral |
SqlJdbcDataTypeName.symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this keyword
at a particular position in the parsed text.
|
SqlLiteral |
SqlExplainFormat.symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this symbol 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.
|
SqlNode |
SqlWindow.Bound.symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this bound
type at a particular position in the parsed text.
|
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 |
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.
|
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 |
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 |
SqlMatchRecognize.RowsPerMatchOption.symbol(SqlParserPos pos) |
SqlLiteral |
SqlMatchRecognize.AfterOption.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 |
SqlSelectKeyword.symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this keyword
at a particular position in the parsed text.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SqlIdentifier.setNames(List<String> names,
List<SqlParserPos> poses)
Modifies the components of this identifier and their positions.
|
static SqlIdentifier |
SqlIdentifier.star(List<String> names,
SqlParserPos pos,
List<SqlParserPos> componentPositions)
Creates an identifier that ends in a wildcard star.
|
| Constructor and Description |
|---|
SqlAbstractDateTimeLiteral(Object d,
boolean tz,
SqlTypeName typeName,
int precision,
SqlParserPos pos)
Constructs a datetime literal.
|
SqlAbstractStringLiteral(Object value,
SqlTypeName typeName,
SqlParserPos pos) |
SqlAlter(SqlParserPos pos) |
SqlAlter(SqlParserPos pos,
String scope) |
SqlBasicCall(SqlOperator operator,
SqlNode[] operands,
SqlParserPos pos) |
SqlBasicCall(SqlOperator operator,
SqlNode[] operands,
SqlParserPos pos,
boolean expanded,
SqlLiteral functionQualifier) |
SqlBinaryStringLiteral(BitString val,
SqlParserPos pos) |
SqlCall(SqlParserPos pos) |
SqlCharStringLiteral(NlsString val,
SqlParserPos pos) |
SqlCreate(SqlOperator operator,
SqlParserPos pos,
boolean replace,
boolean ifNotExists)
Creates a SqlCreate.
|
SqlCreate(SqlParserPos pos,
boolean replace)
Deprecated.
|
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.
|
SqlDateLiteral(DateString d,
SqlParserPos pos) |
SqlDdl(SqlOperator operator,
SqlParserPos pos)
Creates a SqlDdl.
|
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.
|
SqlDrop(SqlOperator operator,
SqlParserPos pos,
boolean ifExists)
Creates a SqlDrop.
|
SqlDrop(SqlParserPos pos)
Deprecated.
|
SqlDynamicParam(int index,
SqlParserPos pos) |
SqlExplain(SqlParserPos pos,
SqlNode explicandum,
SqlLiteral detailLevel,
SqlLiteral depth,
SqlLiteral format,
int dynamicParameterCount) |
SqlIdentifier(List<String> names,
SqlCollation collation,
SqlParserPos pos,
List<SqlParserPos> componentPositions)
Creates a compound identifier, for example
foo.bar. |
SqlIdentifier(List<String> names,
SqlParserPos pos) |
SqlIdentifier(String name,
SqlCollation collation,
SqlParserPos pos)
Creates a simple identifier, for example
foo, with a
collation. |
SqlIdentifier(String name,
SqlParserPos pos)
Creates a simple identifier, for example
foo. |
SqlInsert(SqlParserPos pos,
SqlNodeList keywords,
SqlNode targetTable,
SqlNode source,
SqlNodeList columnList) |
SqlIntervalLiteral(int sign,
String intervalStr,
SqlIntervalQualifier intervalQualifier,
SqlTypeName sqlTypeName,
SqlParserPos pos) |
SqlIntervalLiteral(SqlIntervalLiteral.IntervalValue intervalValue,
SqlTypeName sqlTypeName,
SqlParserPos pos) |
SqlIntervalQualifier(org.apache.calcite.avatica.util.TimeUnit startUnit,
int startPrecision,
org.apache.calcite.avatica.util.TimeUnit endUnit,
int fractionalSecondPrecision,
SqlParserPos pos) |
SqlIntervalQualifier(org.apache.calcite.avatica.util.TimeUnit startUnit,
org.apache.calcite.avatica.util.TimeUnit endUnit,
SqlParserPos pos) |
SqlJoin(SqlParserPos pos,
SqlNode left,
SqlLiteral natural,
SqlLiteral joinType,
SqlNode right,
SqlLiteral conditionType,
SqlNode condition) |
SqlLiteral(Object value,
SqlTypeName typeName,
SqlParserPos pos)
Creates a
SqlLiteral. |
SqlMatchRecognize(SqlParserPos pos,
SqlNode tableRef,
SqlNode pattern,
SqlLiteral strictStart,
SqlLiteral strictEnd,
SqlNodeList patternDefList,
SqlNodeList measureList,
SqlNode after,
SqlNodeList subsetList,
SqlLiteral rowsPerMatch,
SqlNodeList partitionList,
SqlNodeList orderList,
SqlLiteral interval)
Creates a SqlMatchRecognize.
|
SqlMerge(SqlParserPos pos,
SqlNode targetTable,
SqlNode condition,
SqlNode source,
SqlUpdate updateCall,
SqlInsert insertCall,
SqlSelect sourceSelect,
SqlIdentifier alias) |
SqlNode(SqlParserPos pos)
Creates a node.
|
SqlNodeList(Collection<? extends SqlNode> collection,
SqlParserPos pos)
Creates a
SqlNodeList containing the nodes in
list. |
SqlNodeList(SqlParserPos pos)
Creates an empty
SqlNodeList. |
SqlNumericLiteral(BigDecimal value,
Integer prec,
Integer scale,
boolean isExact,
SqlParserPos pos) |
SqlOrderBy(SqlParserPos pos,
SqlNode query,
SqlNodeList orderList,
SqlNode offset,
SqlNode fetch) |
SqlSelect(SqlParserPos pos,
SqlNodeList keywordList,
SqlNodeList selectList,
SqlNode from,
SqlNode where,
SqlNodeList groupBy,
SqlNode having,
SqlNodeList windowDecls,
SqlNodeList orderBy,
SqlNode offset,
SqlNode fetch) |
SqlSetOption(SqlParserPos pos,
String scope,
SqlIdentifier name,
SqlNode value)
Creates a node.
|
SqlTimeLiteral(TimeString t,
int precision,
boolean hasTimeZone,
SqlParserPos pos) |
SqlTimestampLiteral(TimestampString ts,
int precision,
boolean hasTimeZone,
SqlParserPos pos) |
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.
|
SqlWith(SqlParserPos pos,
SqlNodeList withList,
SqlNode body) |
SqlWithItem(SqlParserPos pos,
SqlIdentifier name,
SqlNodeList columnList,
SqlNode query) |
| Constructor and Description |
|---|
SqlIdentifier(List<String> names,
SqlCollation collation,
SqlParserPos pos,
List<SqlParserPos> componentPositions)
Creates a compound identifier, for example
foo.bar. |
| Modifier and Type | Method and Description |
|---|---|
List<SqlMoniker> |
SqlAdvisor.getCompletionHints(String sql,
SqlParserPos pos)
Gets completion hints for a syntactically correct sql statement with dummy
SqlIdentifier
|
private static boolean |
SqlAdvisor.isSelectListItem(SqlNode root,
SqlParserPos pos) |
| Constructor and Description |
|---|
ValidateErrorInfo(SqlParserPos pos,
String errorMsg)
Creates a new ValidateErrorInfo with a SqlParserPos and an error
string.
|
| Modifier and Type | Method and Description |
|---|---|
SqlCall |
SqlCaseOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlTrimFunction.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
static SqlCase |
SqlCase.createSwitched(SqlParserPos pos,
SqlNode value,
SqlNodeList whenList,
SqlNodeList thenList,
SqlNode elseClause)
Creates a call to the switched form of the case operator, viz:
CASE value |
static SqlCall |
SqlFloorFunction.replaceTimeUnitOperand(SqlCall call,
String literal,
SqlParserPos pos)
Copies a
SqlCall, replacing the time unit operand with the given
literal. |
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.
|
| Constructor and Description |
|---|
SqlCase(SqlParserPos pos,
SqlNode value,
SqlNodeList whenList,
SqlNodeList thenList,
SqlNode elseExpr)
Creates a SqlCase expression.
|
| Modifier and Type | Field and Description |
|---|---|
private SqlParserPos |
SqlParserUtil.ToTreeListItem.pos |
SqlParserPos |
SqlParserUtil.StringAndPos.pos |
private SqlParserPos |
SqlParseException.pos |
static SqlParserPos |
SqlParserPos.ZERO
SqlParserPos representing line one, character one.
|
| Modifier and Type | Field and Description |
|---|---|
private static com.google.common.base.Function<SqlNode,SqlParserPos> |
SqlParserPos.NODE_TO_POS |
private List<SqlParserPos> |
Span.posList |
| Modifier and Type | Method and Description |
|---|---|
SqlParserPos |
Span.end(SqlAbstractParserImpl parser)
Adds the position of the last token emitted by a parser to the list,
and returns a position that covers the whole range.
|
SqlParserPos |
Span.end(SqlNode n)
Adds a node's position to the list,
and returns a position that covers the whole range.
|
protected abstract SqlParserPos |
SqlAbstractParserImpl.getPos() |
SqlParserPos |
SqlParserUtil.ToTreeListItem.getPos() |
SqlParserPos |
SqlParseException.getPos()
Returns the position where this error occurred.
|
SqlParserPos |
SqlParserPos.plus(SqlParserPos pos)
Combines this parser position with another to create a
position that spans from the first point in the first to the last point
in the other.
|
SqlParserPos |
SqlParserPos.plusAll(Collection<SqlNode> nodeList)
Combines this parser position with a list of positions.
|
SqlParserPos |
SqlParserPos.plusAll(SqlNode[] nodes)
Combines this parser position with an array of positions to create a
position that spans from the first point in the first to the last point
in the other.
|
SqlParserPos |
Span.pos()
Returns a position spanning the earliest position to the latest.
|
SqlParserPos |
SqlParserUtil.TokenSequenceImpl.pos(int i) |
SqlParserPos |
SqlParserUtil.OldTokenSequenceImpl.pos(int i) |
private static SqlParserPos |
SqlParserUtil.TokenSequenceImpl.pos(PrecedenceClimbingParser.Token token) |
private static SqlParserPos |
SqlParserPos.sum_(List<SqlParserPos> positions)
Combines a list of parser positions to create a position which spans
from the beginning of the first to the end of the last.
|
static SqlParserPos |
SqlParserPos.sum(Iterable<SqlParserPos> poses)
Combines an iterable of parser positions to create a position which spans
from the beginning of the first to the end of the last.
|
private static SqlParserPos |
SqlParserPos.sum(Iterable<SqlParserPos> poses,
int line,
int column,
int endLine,
int endColumn)
Computes the parser position which is the sum of an array of parser
positions and of a parser position represented by (line, column, endLine,
endColumn).
|
static SqlParserPos |
SqlParserPos.sum(List<? extends SqlNode> nodes)
Combines the parser positions of a list of nodes to create a position
which spans from the beginning of the first to the end of the last.
|
static SqlParserPos |
SqlParserPos.sum(SqlNode[] nodes)
Combines the parser positions of an array of nodes to create a position
which spans from the beginning of the first to the end of the last.
|
| Modifier and Type | Method and Description |
|---|---|
private static Iterable<SqlParserPos> |
SqlParserPos.toPos(Iterable<SqlNode> nodes) |
private static List<SqlParserPos> |
SqlParserPos.toPos(SqlNode[] nodes) |
| Modifier and Type | Method and Description |
|---|---|
Span |
Span.add(SqlParserPos pos)
Adds a position to the list,
and returns this Span.
|
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.
|
private boolean |
SqlParserPos.endsAfter(SqlParserPos pos) |
static Span |
Span.of(SqlParserPos p)
Creates a Span with one position.
|
boolean |
SqlParserPos.overlaps(SqlParserPos pos) |
static SqlDateLiteral |
SqlParserUtil.parseDateLiteral(String s,
SqlParserPos pos) |
static SqlIntervalLiteral |
SqlParserUtil.parseIntervalLiteral(SqlParserPos pos,
int sign,
String s,
SqlIntervalQualifier intervalQualifier) |
static SqlTimeLiteral |
SqlParserUtil.parseTimeLiteral(String s,
SqlParserPos pos) |
static SqlTimestampLiteral |
SqlParserUtil.parseTimestampLiteral(String s,
SqlParserPos pos) |
SqlParserPos |
SqlParserPos.plus(SqlParserPos pos)
Combines this parser position with another to create a
position that spans from the first point in the first to the last point
in the other.
|
boolean |
SqlParserPos.startsAt(SqlParserPos pos) |
private boolean |
SqlParserPos.startsBefore(SqlParserPos pos) |
| Modifier and Type | Method and Description |
|---|---|
private static SqlParserPos |
SqlParserPos.sum_(List<SqlParserPos> positions)
Combines a list of parser positions to create a position which spans
from the beginning of the first to the end of the last.
|
static SqlParserPos |
SqlParserPos.sum(Iterable<SqlParserPos> poses)
Combines an iterable of parser positions to create a position which spans
from the beginning of the first to the end of the last.
|
private static SqlParserPos |
SqlParserPos.sum(Iterable<SqlParserPos> poses,
int line,
int column,
int endLine,
int endColumn)
Computes the parser position which is the sum of an array of parser
positions and of a parser position represented by (line, column, endLine,
endColumn).
|
| Constructor and Description |
|---|
SqlParseException(String message,
SqlParserPos pos,
int[][] expectedTokenSequences,
String[] tokenImages,
Throwable parserException)
Creates a SqlParseException.
|
StringAndPos(String sql,
int cursor,
SqlParserPos pos) |
ToTreeListItem(SqlOperator op,
SqlParserPos pos) |
| Modifier and Type | Method and Description |
|---|---|
SqlLiteral |
SqlTypeName.createLiteral(Object o,
SqlParserPos pos) |
| Modifier and Type | Method and Description |
|---|---|
private static void |
SqlValidatorImpl.findAllValidFunctionNames(List<String> names,
SqlValidator validator,
Collection<SqlMoniker> result,
SqlParserPos pos) |
private void |
SqlValidatorImpl.lookupFromHints(SqlNode node,
SqlValidatorScope scope,
SqlParserPos pos,
Collection<SqlMoniker> hintList) |
List<SqlMoniker> |
SqlValidatorWithHints.lookupHints(SqlNode topNode,
SqlParserPos pos)
Looks up completion hints for a syntactically correct SQL statement that
has been parsed into an expression tree.
|
List<SqlMoniker> |
SqlValidatorImpl.lookupHints(SqlNode topNode,
SqlParserPos pos) |
private void |
SqlValidatorImpl.lookupJoinHints(SqlJoin join,
SqlValidatorScope scope,
SqlParserPos pos,
Collection<SqlMoniker> hintList) |
void |
SqlValidatorImpl.lookupNameCompletionHints(SqlValidatorScope scope,
List<String> names,
SqlParserPos pos,
Collection<SqlMoniker> hintList)
Populates a list of all the valid alternatives for an identifier.
|
SqlMoniker |
SqlValidatorWithHints.lookupQualifiedName(SqlNode topNode,
SqlParserPos pos)
Looks up the fully qualified name for a
SqlIdentifier at a given
Parser Position in a parsed expression tree Note: call this only after
SqlValidator.validate(org.apache.calcite.sql.SqlNode) has been called. |
SqlMoniker |
SqlValidatorImpl.lookupQualifiedName(SqlNode topNode,
SqlParserPos pos) |
(package private) void |
SqlValidatorImpl.lookupSelectHints(SqlSelect select,
SqlParserPos pos,
Collection<SqlMoniker> hintList)
Looks up completion hints for a syntactically correct select SQL that has
been parsed into an expression tree.
|
private void |
SqlValidatorImpl.lookupSelectHints(SqlValidatorNamespace ns,
SqlParserPos pos,
Collection<SqlMoniker> hintList) |
private SqlNode |
SqlValidatorImpl.OrderExpressionExpander.nthSelectItem(int ordinal,
SqlParserPos pos)
Returns the
ordinalth item in the select list. |
protected void |
SqlValidatorImpl.validateFeature(Feature feature,
SqlParserPos context)
Validates that a particular feature is enabled.
|
| Modifier and Type | Method and Description |
|---|---|
private Pair<RexNode,RexNode> |
StandardConvertletTable.convertOverlapsOperand(SqlRexContext cx,
SqlParserPos pos,
SqlNode operand) |
private SqlCall |
StandardConvertletTable.plus(SqlParserPos pos,
SqlNode a0,
SqlNode a1) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.