Uses of Class
org.apache.calcite.sql.parser.SqlParserPos
-
Packages that use SqlParserPos Package Description org.apache.calcite.piglet Piglet, a Pig-like language.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.ddl Parse tree for SQL DDL 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. -
-
Uses of SqlParserPos in org.apache.calcite.piglet
Fields in org.apache.calcite.piglet declared as SqlParserPos Modifier and Type Field Description SqlParserPos
Ast.Node. pos
Methods in org.apache.calcite.piglet with parameters of type SqlParserPos Modifier and Type Method Description static Ast.NumericLiteral
Ast.Literal. createExactNumeric(java.lang.String s, SqlParserPos pos)
Ast.NumericLiteral
Ast.NumericLiteral. negate(SqlParserPos pos)
-
Uses of SqlParserPos in org.apache.calcite.rel.rel2sql
Fields in org.apache.calcite.rel.rel2sql declared as SqlParserPos Modifier and Type Field Description static SqlParserPos
SqlImplementor. POS
-
Uses of SqlParserPos in org.apache.calcite.sql
Fields in org.apache.calcite.sql declared as SqlParserPos Modifier and Type Field Description protected SqlParserPos
SqlNode. pos
Fields in org.apache.calcite.sql with type parameters of type SqlParserPos Modifier and Type Field Description protected com.google.common.collect.ImmutableList<SqlParserPos>
SqlIdentifier. componentPositions
A list of the positions of the components of compound identifiers.Methods in org.apache.calcite.sql that return SqlParserPos Modifier and Type Method Description SqlParserPos
SqlIdentifier. getComponentParserPosition(int i)
Returns the position of thei
th 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)
Methods in org.apache.calcite.sql with parameters of type SqlParserPos Modifier and Type Method Description SqlIdentifier
SqlIdentifier. add(int i, java.lang.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, java.math.BigDecimal value, org.apache.calcite.avatica.util.TimeUnit unit, SqlParserPos pos)
SqlNode
SqlBasicCall. clone(SqlParserPos pos)
SqlBinaryStringLiteral
SqlBinaryStringLiteral. clone(SqlParserPos pos)
SqlNode
SqlCall. clone(SqlParserPos pos)
SqlCharStringLiteral
SqlCharStringLiteral. clone(SqlParserPos pos)
SqlNode
SqlDataTypeSpec. clone(SqlParserPos pos)
SqlDateLiteral
SqlDateLiteral. clone(SqlParserPos pos)
SqlNode
SqlDynamicParam. clone(SqlParserPos pos)
SqlNode
SqlIdentifier. clone(SqlParserPos pos)
SqlIntervalLiteral
SqlIntervalLiteral. clone(SqlParserPos pos)
SqlNode
SqlIntervalQualifier. clone(SqlParserPos pos)
SqlLiteral
SqlLiteral. clone(SqlParserPos pos)
abstract SqlNode
SqlNode. clone(SqlParserPos pos)
Clones a SqlNode with a different position.SqlNodeList
SqlNodeList. clone(SqlParserPos pos)
SqlNumericLiteral
SqlNumericLiteral. clone(SqlParserPos pos)
SqlTimeLiteral
SqlTimeLiteral. clone(SqlParserPos pos)
SqlTimestampLiteral
SqlTimestampLiteral. 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(java.lang.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(java.lang.String s, SqlParserPos pos)
Creates a literal like X'ABAB'.static SqlLiteral
SqlLiteral. createBoolean(boolean b, SqlParserPos pos)
Creates a boolean literal.SqlCall
SqlJdbcFunctionCall. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlJdbcFunctionCall.MakeCall. createCall(SqlParserPos pos, SqlNode... operands)
Creates and return aSqlCall
.SqlCall
SqlJdbcFunctionCall.PermutingMakeCall. createCall(SqlParserPos pos, SqlNode... operands)
SqlCall
SqlJdbcFunctionCall.SimpleMakeCall. createCall(SqlParserPos pos, SqlNode... operands)
SqlCall
SqlJoin.SqlJoinOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlMatchRecognize.SqlMatchRecognizeOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlOperator. createCall(SqlParserPos pos, java.util.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
SqlOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
Creates a call to this operand with an array of operands.SqlCall
SqlSelectOperator. 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 theSELECT
operator.SqlCall
SqlWindow.SqlWindowOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlWith.SqlWithOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlWithItem.SqlWithItemOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
static SqlCharStringLiteral
SqlLiteral. createCharString(java.lang.String s, java.lang.String charSet, SqlParserPos pos)
Creates a string literal, with optional character-set.static SqlCharStringLiteral
SqlLiteral. createCharString(java.lang.String s, SqlParserPos pos)
Creates a string literal in the system 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(java.util.Calendar calendar, SqlParserPos pos)
Deprecated.static SqlDateLiteral
SqlLiteral. createDate(DateString date, SqlParserPos pos)
static SqlNumericLiteral
SqlLiteral. createExactNumeric(java.lang.String s, SqlParserPos pos)
static SqlNode
SqlWindow. createFollowing(SqlNode e, SqlParserPos pos)
static SqlIntervalLiteral
SqlLiteral. createInterval(int sign, java.lang.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(java.lang.Enum<?> o, SqlParserPos pos)
Creates a literal which represents a parser symbol, for example theTRAILING
keyword in the callTrim(TRAILING 'x' FROM 'Hello world!')
.static SqlTimeLiteral
SqlLiteral. createTime(java.util.Calendar calendar, int precision, SqlParserPos pos)
Deprecated.static SqlTimeLiteral
SqlLiteral. createTime(TimeString t, int precision, SqlParserPos pos)
static SqlTimestampLiteral
SqlLiteral. createTimestamp(java.util.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(java.lang.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, java.lang.String value, java.lang.String originalValue, SqlParserPos pos)
Validates an INTERVAL literal against a DAY interval qualifier.private int[]
SqlIntervalQualifier. evaluateIntervalLiteralAsDayToHour(RelDataTypeSystem typeSystem, int sign, java.lang.String value, java.lang.String originalValue, SqlParserPos pos)
Validates an INTERVAL literal against a DAY TO HOUR interval qualifier.private int[]
SqlIntervalQualifier. evaluateIntervalLiteralAsDayToMinute(RelDataTypeSystem typeSystem, int sign, java.lang.String value, java.lang.String originalValue, SqlParserPos pos)
Validates an INTERVAL literal against a DAY TO MINUTE interval qualifier.private int[]
SqlIntervalQualifier. evaluateIntervalLiteralAsDayToSecond(RelDataTypeSystem typeSystem, int sign, java.lang.String value, java.lang.String originalValue, SqlParserPos pos)
Validates an INTERVAL literal against a DAY TO SECOND interval qualifier.private int[]
SqlIntervalQualifier. evaluateIntervalLiteralAsHour(RelDataTypeSystem typeSystem, int sign, java.lang.String value, java.lang.String originalValue, SqlParserPos pos)
Validates an INTERVAL literal against an HOUR interval qualifier.private int[]
SqlIntervalQualifier. evaluateIntervalLiteralAsHourToMinute(RelDataTypeSystem typeSystem, int sign, java.lang.String value, java.lang.String originalValue, SqlParserPos pos)
Validates an INTERVAL literal against an HOUR TO MINUTE interval qualifier.private int[]
SqlIntervalQualifier. evaluateIntervalLiteralAsHourToSecond(RelDataTypeSystem typeSystem, int sign, java.lang.String value, java.lang.String originalValue, SqlParserPos pos)
Validates an INTERVAL literal against an HOUR TO SECOND interval qualifier.private int[]
SqlIntervalQualifier. evaluateIntervalLiteralAsMinute(RelDataTypeSystem typeSystem, int sign, java.lang.String value, java.lang.String originalValue, SqlParserPos pos)
Validates an INTERVAL literal against an MINUTE interval qualifier.private int[]
SqlIntervalQualifier. evaluateIntervalLiteralAsMinuteToSecond(RelDataTypeSystem typeSystem, int sign, java.lang.String value, java.lang.String originalValue, SqlParserPos pos)
Validates an INTERVAL literal against an MINUTE TO SECOND interval qualifier.private int[]
SqlIntervalQualifier. evaluateIntervalLiteralAsMonth(RelDataTypeSystem typeSystem, int sign, java.lang.String value, java.lang.String originalValue, SqlParserPos pos)
Validates an INTERVAL literal against a MONTH interval qualifier.private int[]
SqlIntervalQualifier. evaluateIntervalLiteralAsSecond(RelDataTypeSystem typeSystem, int sign, java.lang.String value, java.lang.String originalValue, SqlParserPos pos)
Validates an INTERVAL literal against an SECOND interval qualifier.private int[]
SqlIntervalQualifier. evaluateIntervalLiteralAsYear(RelDataTypeSystem typeSystem, int sign, java.lang.String value, java.lang.String originalValue, SqlParserPos pos)
Validates an INTERVAL literal against a YEAR interval qualifier.private int[]
SqlIntervalQualifier. evaluateIntervalLiteralAsYearToMonth(RelDataTypeSystem typeSystem, int sign, java.lang.String value, java.lang.String originalValue, SqlParserPos pos)
Validates an INTERVAL literal against a YEAR TO MONTH interval qualifier.private CalciteContextException
SqlIntervalQualifier. fieldExceedsPrecisionException(SqlParserPos pos, int sign, java.math.BigDecimal value, org.apache.calcite.avatica.util.TimeUnit type, int precision)
void
SqlCall. findValidOptions(SqlValidator validator, SqlValidatorScope scope, SqlParserPos pos, java.util.Collection<SqlMoniker> hintList)
void
SqlNode. findValidOptions(SqlValidator validator, SqlValidatorScope scope, SqlParserPos pos, java.util.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, java.lang.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, java.lang.String inputText)
Wraps an exception with context.SqlIdentifier
SqlIdentifier. plus(java.lang.String name, SqlParserPos pos)
Creates an identifier that consists of this identifier plus a name segment.static SqlIdentifier
SqlIdentifier. star(java.util.List<java.lang.String> names, SqlParserPos pos, java.util.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
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.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
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
SqlExplainFormat. 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
SqlInsertKeyword. symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this keyword at a particular position in the parsed text.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
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
SqlMatchRecognize.RowsPerMatchOption. symbol(SqlParserPos pos)
SqlLiteral
SqlSelectKeyword. 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.Constructors in org.apache.calcite.sql with parameters of type SqlParserPos Constructor Description SqlAbstractDateTimeLiteral(java.lang.Object d, boolean tz, SqlTypeName typeName, int precision, SqlParserPos pos)
Constructs a datetime literal.SqlAbstractStringLiteral(java.lang.Object value, SqlTypeName typeName, SqlParserPos pos)
SqlAlter(SqlParserPos pos)
SqlAlter(SqlParserPos pos, java.lang.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(SqlParserPos pos, boolean replace)
Deprecated.SqlCreate(SqlOperator operator, SqlParserPos pos, boolean replace, boolean ifNotExists)
Creates a SqlCreate.SqlDataTypeSpec(SqlIdentifier typeName, int precision, int scale, java.lang.String charSetName, java.util.TimeZone timeZone, SqlParserPos pos)
Creates a type specification representing a regular, non-collection type.SqlDataTypeSpec(SqlIdentifier collectionsTypeName, SqlIdentifier typeName, int precision, int scale, java.lang.String charSetName, java.util.TimeZone timeZone, java.lang.Boolean nullable, SqlParserPos pos)
Creates a type specification that has no base type.SqlDataTypeSpec(SqlIdentifier collectionsTypeName, SqlIdentifier typeName, int precision, int scale, java.lang.String charSetName, SqlParserPos pos)
Creates a type specification representing a collection type.SqlDataTypeSpec(SqlIdentifier collectionsTypeName, SqlIdentifier typeName, SqlIdentifier baseTypeName, int precision, int scale, java.lang.String charSetName, java.util.TimeZone timeZone, java.lang.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(SqlParserPos pos)
Deprecated.SqlDrop(SqlOperator operator, SqlParserPos pos, boolean ifExists)
Creates a SqlDrop.SqlDynamicParam(int index, SqlParserPos pos)
SqlExplain(SqlParserPos pos, SqlNode explicandum, SqlLiteral detailLevel, SqlLiteral depth, SqlLiteral format, int dynamicParameterCount)
SqlIdentifier(java.lang.String name, SqlParserPos pos)
Creates a simple identifier, for examplefoo
.SqlIdentifier(java.lang.String name, SqlCollation collation, SqlParserPos pos)
Creates a simple identifier, for examplefoo
, with a collation.SqlIdentifier(java.util.List<java.lang.String> names, SqlParserPos pos)
SqlIdentifier(java.util.List<java.lang.String> names, SqlCollation collation, SqlParserPos pos, java.util.List<SqlParserPos> componentPositions)
Creates a compound identifier, for examplefoo.bar
.SqlInsert(SqlParserPos pos, SqlNodeList keywords, SqlNode targetTable, SqlNode source, SqlNodeList columnList)
SqlIntervalLiteral(int sign, java.lang.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(java.lang.Object value, SqlTypeName typeName, SqlParserPos pos)
Creates aSqlLiteral
.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(java.util.Collection<? extends SqlNode> collection, SqlParserPos pos)
Creates aSqlNodeList
containing the nodes inlist
.SqlNodeList(SqlParserPos pos)
Creates an emptySqlNodeList
.SqlNumericLiteral(java.math.BigDecimal value, java.lang.Integer prec, java.lang.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, java.lang.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)
-
Uses of SqlParserPos in org.apache.calcite.sql.advise
Methods in org.apache.calcite.sql.advise with parameters of type SqlParserPos Modifier and Type Method Description java.util.List<SqlMoniker>
SqlAdvisor. getCompletionHints(java.lang.String sql, SqlParserPos pos)
Gets completion hints for a syntactically correct sql statement with dummy SqlIdentifierprivate static boolean
SqlAdvisor. isSelectListItem(SqlNode root, SqlParserPos pos, java.lang.String hintToken)
Constructors in org.apache.calcite.sql.advise with parameters of type SqlParserPos Constructor Description ValidateErrorInfo(SqlParserPos pos, java.lang.String errorMsg)
Creates a new ValidateErrorInfo with a SqlParserPos and an error string. -
Uses of SqlParserPos in org.apache.calcite.sql.ddl
Methods in org.apache.calcite.sql.ddl with parameters of type SqlParserPos Modifier and Type Method Description static SqlNode
SqlDdlNodes. attribute(SqlParserPos pos, SqlIdentifier name, SqlDataTypeSpec dataType, SqlNode expression, SqlCollation collation)
Creates a attribute definition.static SqlNode
SqlDdlNodes. check(SqlParserPos pos, SqlIdentifier name, SqlNode expression)
Creates a CHECK constraint.static SqlNode
SqlDdlNodes. column(SqlParserPos pos, SqlIdentifier name, SqlDataTypeSpec dataType, SqlNode expression, ColumnStrategy strategy)
Creates a column declaration.static SqlCreateForeignSchema
SqlDdlNodes. createForeignSchema(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNode type, SqlNode library, SqlNodeList optionList)
Creates a CREATE FOREIGN SCHEMA.static SqlCreateFunction
SqlDdlNodes. createFunction(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNode className, SqlNodeList usingList)
Creates a CREATE FUNCTION.static SqlCreateMaterializedView
SqlDdlNodes. createMaterializedView(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
Creates a CREATE MATERIALIZED VIEW.static SqlCreateSchema
SqlDdlNodes. createSchema(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name)
Creates a CREATE SCHEMA.static SqlCreateTable
SqlDdlNodes. createTable(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
Creates a CREATE TABLE.static SqlCreateType
SqlDdlNodes. createType(SqlParserPos pos, boolean replace, SqlIdentifier name, SqlNodeList attributeList, SqlDataTypeSpec dataTypeSpec)
Creates a CREATE TYPE.static SqlCreateView
SqlDdlNodes. createView(SqlParserPos pos, boolean replace, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
Creates a CREATE VIEW.static SqlDrop
SqlDdlNodes. dropFunction(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
Creates a DROP FUNCTION.static SqlDrop
SqlDdlNodes. dropMaterializedView(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
Creates a DROP MATERIALIZED VIEW.static SqlDropSchema
SqlDdlNodes. dropSchema(SqlParserPos pos, boolean foreign, boolean ifExists, SqlIdentifier name)
Creates a DROP [ FOREIGN ] SCHEMA.static SqlDropTable
SqlDdlNodes. dropTable(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
Creates a DROP TABLE.static SqlDropType
SqlDdlNodes. dropType(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
Creates a DROP TYPE.static SqlDrop
SqlDdlNodes. dropView(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
Creates a DROP VIEW.static SqlKeyConstraint
SqlDdlNodes. primary(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
Creates a PRIMARY KEY constraint.static SqlKeyConstraint
SqlKeyConstraint. primary(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
Creates a PRIMARY KEY constraint.static SqlKeyConstraint
SqlDdlNodes. unique(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
Creates a UNIQUE constraint.static SqlKeyConstraint
SqlKeyConstraint. unique(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
Creates a UNIQUE constraint.Constructors in org.apache.calcite.sql.ddl with parameters of type SqlParserPos Constructor Description SqlAttributeDefinition(SqlParserPos pos, SqlIdentifier name, SqlDataTypeSpec dataType, SqlNode expression, SqlCollation collation)
SqlCheckConstraint(SqlParserPos pos, SqlIdentifier name, SqlNode expression)
Creates a SqlCheckConstraint; useSqlDdlNodes.check(org.apache.calcite.sql.parser.SqlParserPos, org.apache.calcite.sql.SqlIdentifier, org.apache.calcite.sql.SqlNode)
.SqlColumnDeclaration(SqlParserPos pos, SqlIdentifier name, SqlDataTypeSpec dataType, SqlNode expression, ColumnStrategy strategy)
SqlCreateForeignSchema(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNode type, SqlNode library, SqlNodeList optionList)
Creates a SqlCreateForeignSchema.SqlCreateFunction(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNode className, SqlNodeList usingList)
Creates a SqlCreateFunction.SqlCreateMaterializedView(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
Creates a SqlCreateView.SqlCreateSchema(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name)
Creates a SqlCreateSchema.SqlCreateTable(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
Creates a SqlCreateTable.SqlCreateType(SqlParserPos pos, boolean replace, SqlIdentifier name, SqlNodeList attributeDefs, SqlDataTypeSpec dataType)
Creates a SqlCreateType.SqlCreateView(SqlParserPos pos, boolean replace, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
Creates a SqlCreateView.SqlDropFunction(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
Creates a SqlDropFunction.SqlDropMaterializedView(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
Creates a SqlDropMaterializedView.SqlDropObject(SqlOperator operator, SqlParserPos pos, boolean ifExists, SqlIdentifier name)
Creates a SqlDropObject.SqlDropSchema(SqlParserPos pos, boolean foreign, boolean ifExists, SqlIdentifier name)
Creates a SqlDropSchema.SqlDropTable(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
Creates a SqlDropTable.SqlDropType(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
SqlDropView(SqlParserPos pos, boolean ifExists, SqlIdentifier name)
Creates a SqlDropView.SqlKeyConstraint(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
Creates a SqlKeyConstraint. -
Uses of SqlParserPos in org.apache.calcite.sql.fun
Methods in org.apache.calcite.sql.fun with parameters of type SqlParserPos Modifier and Type Method Description SqlCall
SqlCaseOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlJsonArrayFunction. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlJsonObjectFunction. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlJsonQueryFunction. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlJsonValueFunction. 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
WHEN whenList[0] THEN thenList[0]
WHEN whenList[1] THEN thenList[1]
...
ELSE elseClause
ENDstatic SqlCall
SqlFloorFunction. replaceTimeUnitOperand(SqlCall call, java.lang.String literal, SqlParserPos pos)
Copies aSqlCall
, 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.Constructors in org.apache.calcite.sql.fun with parameters of type SqlParserPos Constructor Description SqlCase(SqlParserPos pos, SqlNode value, SqlNodeList whenList, SqlNodeList thenList, SqlNode elseExpr)
Creates a SqlCase expression. -
Uses of SqlParserPos in org.apache.calcite.sql.parser
Fields in org.apache.calcite.sql.parser declared as SqlParserPos Modifier and Type Field Description private SqlParserPos
SqlParseException. pos
SqlParserPos
SqlParserUtil.StringAndPos. pos
private SqlParserPos
SqlParserUtil.ToTreeListItem. pos
static SqlParserPos
SqlParserPos. ZERO
SqlParserPos representing line one, character one.Fields in org.apache.calcite.sql.parser with type parameters of type SqlParserPos Modifier and Type Field Description private java.util.List<SqlParserPos>
Span. posList
Methods in org.apache.calcite.sql.parser that return SqlParserPos Modifier and Type Method 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
SqlParseException. getPos()
Returns the position where this error occurred.SqlParserPos
SqlParserUtil.ToTreeListItem. getPos()
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(java.util.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.OldTokenSequenceImpl. pos(int i)
SqlParserPos
SqlParserUtil.TokenSequenceImpl. pos(int i)
private static SqlParserPos
SqlParserUtil.TokenSequenceImpl. pos(PrecedenceClimbingParser.Token token)
static SqlParserPos
SqlParserPos. sum(java.lang.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(java.lang.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(java.util.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.private static SqlParserPos
SqlParserPos. sum_(java.util.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.Methods in org.apache.calcite.sql.parser that return types with arguments of type SqlParserPos Modifier and Type Method Description private static java.lang.Iterable<SqlParserPos>
SqlParserPos. toPos(java.lang.Iterable<SqlNode> nodes)
private static java.util.List<SqlParserPos>
SqlParserPos. toPos(SqlNode[] nodes)
Methods in org.apache.calcite.sql.parser with parameters of type SqlParserPos Modifier and Type Method 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, java.lang.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(java.lang.String s, SqlParserPos pos)
static SqlIntervalLiteral
SqlParserUtil. parseIntervalLiteral(SqlParserPos pos, int sign, java.lang.String s, SqlIntervalQualifier intervalQualifier)
static SqlTimeLiteral
SqlParserUtil. parseTimeLiteral(java.lang.String s, SqlParserPos pos)
static SqlTimestampLiteral
SqlParserUtil. parseTimestampLiteral(java.lang.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)
Method parameters in org.apache.calcite.sql.parser with type arguments of type SqlParserPos Modifier and Type Method Description static SqlParserPos
SqlParserPos. sum(java.lang.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(java.lang.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).private static SqlParserPos
SqlParserPos. sum_(java.util.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.Constructors in org.apache.calcite.sql.parser with parameters of type SqlParserPos Constructor Description SqlParseException(java.lang.String message, SqlParserPos pos, int[][] expectedTokenSequences, java.lang.String[] tokenImages, java.lang.Throwable parserException)
Creates a SqlParseException.StringAndPos(java.lang.String sql, int cursor, SqlParserPos pos)
ToTreeListItem(SqlOperator op, SqlParserPos pos)
-
Uses of SqlParserPos in org.apache.calcite.sql.type
Methods in org.apache.calcite.sql.type with parameters of type SqlParserPos Modifier and Type Method Description SqlLiteral
SqlTypeName. createLiteral(java.lang.Object o, SqlParserPos pos)
-
Uses of SqlParserPos in org.apache.calcite.sql.validate
Methods in org.apache.calcite.sql.validate with parameters of type SqlParserPos Modifier and Type Method Description private static void
SqlValidatorImpl. findAllValidFunctionNames(java.util.List<java.lang.String> names, SqlValidator validator, java.util.Collection<SqlMoniker> result, SqlParserPos pos)
private void
SqlValidatorImpl. lookupFromHints(SqlNode node, SqlValidatorScope scope, SqlParserPos pos, java.util.Collection<SqlMoniker> hintList)
java.util.List<SqlMoniker>
SqlValidatorImpl. lookupHints(SqlNode topNode, SqlParserPos pos)
java.util.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.private void
SqlValidatorImpl. lookupJoinHints(SqlJoin join, SqlValidatorScope scope, SqlParserPos pos, java.util.Collection<SqlMoniker> hintList)
void
SqlValidatorImpl. lookupNameCompletionHints(SqlValidatorScope scope, java.util.List<java.lang.String> names, SqlParserPos pos, java.util.Collection<SqlMoniker> hintList)
Populates a list of all the valid alternatives for an identifier.SqlMoniker
SqlValidatorImpl. lookupQualifiedName(SqlNode topNode, SqlParserPos pos)
SqlMoniker
SqlValidatorWithHints. lookupQualifiedName(SqlNode topNode, SqlParserPos pos)
Looks up the fully qualified name for aSqlIdentifier
at a given Parser Position in a parsed expression tree Note: call this only afterSqlValidator.validate(org.apache.calcite.sql.SqlNode)
has been called.(package private) void
SqlValidatorImpl. lookupSelectHints(SqlSelect select, SqlParserPos pos, java.util.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, java.util.Collection<SqlMoniker> hintList)
private SqlNode
SqlValidatorImpl.OrderExpressionExpander. nthSelectItem(int ordinal, SqlParserPos pos)
Returns theordinal
th item in the select list.protected void
SqlValidatorImpl. validateFeature(Feature feature, SqlParserPos context)
Validates that a particular feature is enabled. -
Uses of SqlParserPos in org.apache.calcite.sql2rel
Methods in org.apache.calcite.sql2rel with parameters of type SqlParserPos Modifier and Type Method Description private Pair<RexNode,RexNode>
StandardConvertletTable. convertOverlapsOperand(SqlRexContext cx, SqlParserPos pos, SqlNode operand)
private SqlNode
StandardConvertletTable.AvgVarianceConvertlet. getCastedSqlNode(SqlNode argInput, RelDataType varType, SqlParserPos pos, RexNode argRex)
private SqlNode
StandardConvertletTable.RegrCovarianceConvertlet. getCastedSqlNode(SqlNode argInput, RelDataType varType, SqlParserPos pos, RexNode argRex)
private SqlCall
StandardConvertletTable. plus(SqlParserPos pos, SqlNode a0, SqlNode a1)
-