/** * List of compound identifiers in parentheses. The position extends from the * open parenthesis to the close parenthesis. */ final public Pair<SqlNodeList, SqlNodeList> ParenthesizedCompoundIdentifierList() throws ParseException { final Span s; final List<SqlNode> list = new ArrayList<SqlNode>(); final List<SqlNode> extendList = new ArrayList<SqlNode>(); jj_consume_token(LPAREN); s = span(); CompoundIdentifierTypeCommaList(list, extendList); jj_consume_token(RPAREN); {if (true) return Pair.of(new SqlNodeList(list, s.end(this)), new SqlNodeList(extendList, s.end(this)));} throw new Error("Missing return statement in function"); }
/** * List of simple identifiers in parentheses. The position extends from the * open parenthesis to the close parenthesis. */ final public SqlNodeList ParenthesizedSimpleIdentifierList() throws ParseException { final Span s; final List<SqlNode> list = new ArrayList<SqlNode>(); jj_consume_token(LPAREN); s = span(); SimpleIdentifierCommaList(list); jj_consume_token(RPAREN); {if (true) return new SqlNodeList(list, s.end(this));} throw new Error("Missing return statement in function"); }
/** * Parses a NEW UDT(...) expression. */ final public SqlNode NewSpecification() throws ParseException { final Span s; final SqlNode routineCall; jj_consume_token(NEW); s = span(); routineCall = NamedRoutineCall(SqlFunctionCategory.USER_DEFINED_CONSTRUCTOR, ExprContext.ACCEPT_SUB_QUERY); {if (true) return SqlStdOperatorTable.NEW.createCall(s.end(routineCall), routineCall);} throw new Error("Missing return statement in function"); }
/** * Parses a CALL statement. */ final public SqlNode SqlProcedureCall() throws ParseException { final Span s; SqlNode routineCall; jj_consume_token(CALL); s = span(); routineCall = NamedRoutineCall(SqlFunctionCategory.USER_DEFINED_PROCEDURE, ExprContext.ACCEPT_SUB_QUERY); {if (true) return SqlStdOperatorTable.PROCEDURE_CALL.createCall( s.end(routineCall), routineCall);} throw new Error("Missing return statement in function"); }
final public SqlNode MeasureColumn() throws ParseException { SqlNode e; SqlIdentifier alias; e = Expression(ExprContext.ACCEPT_NON_QUERY); jj_consume_token(AS); alias = SimpleIdentifier(); {if (true) return SqlStdOperatorTable.AS.createCall(Span.of(e).end(this), e, alias);} throw new Error("Missing return statement in function"); }
/** * Parses a VALUES leaf query expression. */ final public SqlNode TableConstructor() throws ParseException { SqlNodeList rowConstructorList; final Span s; jj_consume_token(VALUES); s = span(); rowConstructorList = RowConstructorList(s); {if (true) return SqlStdOperatorTable.VALUES.createCall( s.end(this), rowConstructorList.toArray());} throw new Error("Missing return statement in function"); }
final public SqlNode PatternTerm() throws ParseException { SqlNode left; SqlNode right; left = PatternFactor(); label_17: while (true) { if (jj_2_216(2)) { ; } else { break label_17; } right = PatternFactor(); left = SqlStdOperatorTable.PATTERN_CONCAT.createCall( Span.of(left).end(right), left, right); } {if (true) return left;} throw new Error("Missing return statement in function"); }
/** * List of compound identifiers in parentheses. The position extends from the * open parenthesis to the close parenthesis. */ final public Pair<SqlNodeList, SqlNodeList> ParenthesizedCompoundIdentifierList() throws ParseException { final Span s; final List<SqlNode> list = new ArrayList<SqlNode>(); final List<SqlNode> extendList = new ArrayList<SqlNode>(); jj_consume_token(LPAREN); s = span(); CompoundIdentifierTypeCommaList(list, extendList); jj_consume_token(RPAREN); {if (true) return Pair.of(new SqlNodeList(list, s.end(this)), new SqlNodeList(extendList, s.end(this)));} throw new Error("Missing return statement in function"); }
final public SqlNode SubsetDefinition() throws ParseException { final SqlNode var; final SqlNodeList varList; var = SimpleIdentifier(); jj_consume_token(EQ); jj_consume_token(LPAREN); varList = ExpressionCommaList(span(), ExprContext.ACCEPT_NON_QUERY); jj_consume_token(RPAREN); {if (true) return SqlStdOperatorTable.EQUALS.createCall(span().end(var), var, varList);} throw new Error("Missing return statement in function"); }
/** Parses a PERIOD constructor */ final public SqlNode PeriodConstructor() throws ParseException { final SqlNode e0, e1; final Span s; jj_consume_token(PERIOD); s = span(); jj_consume_token(LPAREN); e0 = Expression(ExprContext.ACCEPT_SUB_QUERY); jj_consume_token(COMMA); e1 = Expression(ExprContext.ACCEPT_SUB_QUERY); jj_consume_token(RPAREN); {if (true) return SqlStdOperatorTable.ROW.createCall(s.end(this), e0, e1);} throw new Error("Missing return statement in function"); }
/** * List of simple identifiers in parentheses. The position extends from the * open parenthesis to the close parenthesis. */ final public SqlNodeList ParenthesizedSimpleIdentifierList() throws ParseException { final Span s; final List<SqlNode> list = new ArrayList<SqlNode>(); jj_consume_token(LPAREN); s = span(); SimpleIdentifierCommaList(list); jj_consume_token(RPAREN); {if (true) return new SqlNodeList(list, s.end(this));} throw new Error("Missing return statement in function"); }
/** * Parses a NEW UDT(...) expression. */ final public SqlNode NewSpecification() throws ParseException { final Span s; final SqlNode routineCall; jj_consume_token(NEW); s = span(); routineCall = NamedRoutineCall(SqlFunctionCategory.USER_DEFINED_CONSTRUCTOR, ExprContext.ACCEPT_SUB_QUERY); {if (true) return SqlStdOperatorTable.NEW.createCall(s.end(routineCall), routineCall);} throw new Error("Missing return statement in function"); }
/** * Parses a CALL statement. */ final public SqlNode SqlProcedureCall() throws ParseException { final Span s; SqlNode routineCall; jj_consume_token(CALL); s = span(); routineCall = NamedRoutineCall(SqlFunctionCategory.USER_DEFINED_PROCEDURE, ExprContext.ACCEPT_SUB_QUERY); {if (true) return SqlStdOperatorTable.PROCEDURE_CALL.createCall( s.end(routineCall), routineCall);} throw new Error("Missing return statement in function"); }
final public SqlNode MeasureColumn() throws ParseException { SqlNode e; SqlIdentifier alias; e = Expression(ExprContext.ACCEPT_NON_QUERY); jj_consume_token(AS); alias = SimpleIdentifier(); {if (true) return SqlStdOperatorTable.AS.createCall(Span.of(e).end(this), e, alias);} throw new Error("Missing return statement in function"); }
/** * Parses a VALUES leaf query expression. */ final public SqlNode TableConstructor() throws ParseException { SqlNodeList rowConstructorList; final Span s; jj_consume_token(VALUES); s = span(); rowConstructorList = RowConstructorList(s); {if (true) return SqlStdOperatorTable.VALUES.createCall( s.end(this), rowConstructorList.toArray());} throw new Error("Missing return statement in function"); }
final public SqlIdentifier TypeName() throws ParseException { final SqlTypeName sqlTypeName; final SqlIdentifier typeName; final Span s = Span.of(); if (jj_2_432(2)) { sqlTypeName = SqlTypeName(s); typeName = new SqlIdentifier(sqlTypeName.name(), s.end(this)); } else if (jj_2_433(2)) { typeName = CollectionsTypeName(); } else if (jj_2_434(2)) { typeName = CompoundIdentifier(); } else { jj_consume_token(-1); throw new ParseException(); } {if (true) return typeName;} throw new Error("Missing return statement in function"); }
final public SqlNode PatternTerm() throws ParseException { SqlNode left; SqlNode right; left = PatternFactor(); label_17: while (true) { if (jj_2_216(2)) { ; } else { break label_17; } right = PatternFactor(); left = SqlStdOperatorTable.PATTERN_CONCAT.createCall( Span.of(left).end(right), left, right); } {if (true) return left;} throw new Error("Missing return statement in function"); }
final public SqlNode SubsetDefinition() throws ParseException { final SqlNode var; final SqlNodeList varList; var = SimpleIdentifier(); jj_consume_token(EQ); jj_consume_token(LPAREN); varList = ExpressionCommaList(span(), ExprContext.ACCEPT_NON_QUERY); jj_consume_token(RPAREN); {if (true) return SqlStdOperatorTable.EQUALS.createCall(span().end(var), var, varList);} throw new Error("Missing return statement in function"); }
/** Parses a PERIOD constructor */ final public SqlNode PeriodConstructor() throws ParseException { final SqlNode e0, e1; final Span s; jj_consume_token(PERIOD); s = span(); jj_consume_token(LPAREN); e0 = Expression(ExprContext.ACCEPT_SUB_QUERY); jj_consume_token(COMMA); e1 = Expression(ExprContext.ACCEPT_SUB_QUERY); jj_consume_token(RPAREN); {if (true) return SqlStdOperatorTable.ROW.createCall(s.end(this), e0, e1);} throw new Error("Missing return statement in function"); }
final public SqlCall MatchRecognizeCallWithModifier() throws ParseException { final Span s; final SqlOperator runningOp; final SqlNode func; if (jj_2_568(2)) { jj_consume_token(RUNNING); runningOp = SqlStdOperatorTable.RUNNING; } else if (jj_2_569(2)) { jj_consume_token(FINAL); runningOp = SqlStdOperatorTable.FINAL; } else { jj_consume_token(-1); throw new ParseException(); } s = span(); func = NamedFunctionCall(); {if (true) return runningOp.createCall(s.end(func), func);} throw new Error("Missing return statement in function"); }