Package org.yamcs.yarch.streamsql
Class StreamSqlParser
java.lang.Object
org.yamcs.yarch.streamsql.StreamSqlParser
- All Implemented Interfaces:
StreamSqlParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface org.yamcs.yarch.streamsql.StreamSqlParserConstants
DECIMAL_LITERAL, DEFAULT, DIGIT, EOF, EXPONENT, HEX_DIGIT, HEX_LITERAL, K_ADVANCE, K_AFAP, K_ALL, K_ALTER, K_AND, K_ANY, K_ARRAY, K_AS, K_ASC, K_AUTO_INCREMENT, K_BETWEEN, K_BOOLEAN, K_BY, K_BYTE, K_CHAR, K_CLOSE, K_COLUMN_FAMILY, K_COMPRESSED, K_CREATE, K_CURRENT, K_DATABASES, K_DATE, K_DECIMAL, K_DELETE, K_DESC, K_DESCRIBE, K_DISTINCT, K_DOUBLE, K_DROP, K_ENGINE, K_ENGINES, K_ENUM, K_ESCAPE, K_EXISTS, K_FIXED_DELAY, K_FLOAT, K_FROM, K_HAVING, K_HISTOGRAM, K_IF, K_IN, K_IN_KEY, K_INDEX, K_INPUT, K_INSERT, K_INSERT_APPEND, K_INT, K_INTO, K_IS, K_KEY, K_LIKE, K_LIMIT, K_LOAD, K_LONG, K_MERGE, K_MOD, K_NOFOLLOW, K_NOT, K_NULL, K_NULLS, K_ON, K_ONLY, K_OR, K_ORDER, K_ORIGINAL, K_OUT, K_OUTPUT, K_PARTITION, K_PORT, K_PRIMARY, K_PROTOBUF, K_RANGE, K_READ, K_REAL, K_RENAME, K_RESTART, K_REVERSE, K_ROW, K_ROWS, K_SAMPLE, K_SELECT, K_SEQUENCE, K_SEQUENCES, K_SET, K_SHOW, K_SHRT, K_SIZE, K_SMALLINT, K_STREAM, K_STREAMS, K_STRING, K_TABLE, K_TABLE_FORMAT, K_TABLES, K_TABLESPACE, K_TIME, K_TIME_AND_VALUE, K_TO, K_TUPLES, K_UNIQUE, K_UPDATE, K_UPSERT, K_UPSERT_APPEND, K_USE, K_USING, K_VALUE, K_VALUES, K_WHEN, K_WHERE, K_WITH, LETTER, LINE_COMMENT, MULTI_LINE_COMMENT, S_DOUBLE_QUOTED_IDENTIFIER, S_FLOAT, S_IDENTIFIER, S_INTEGER, S_QMARK, S_STRING, SIGN, SPECIAL_CHARS, tokenImage -
Constructor Summary
ConstructorsConstructorDescriptionStreamSqlParser(InputStream stream) Constructor with InputStream.StreamSqlParser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingStreamSqlParser(Reader stream) Constructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal Expressionfinal AddOpAddOp()final AlterSequenceStatementfinal AlterTableStatementfinal Expressionfinal voidArgument()final voidfinal BetweenClausefinal BitwiseOpfinal CloseStreamStatementfinal CreateStreamStatementfinal CreateTableStatementfinal DataTypefinal DeleteStatementfinal DescribeStatementfinal voidDisable tracing.final DropTableStatementfinal voidEnable tracing.final Expressionfinal Expressionfinal List<Expression>final ExpressionGenerate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final voidfinal InClauseInClause()final InsertStatementfinal voidfinal IsNullClausefinal LikeClausefinal org.yamcs.yarch.streamsql.MergeExpressionfinal Expressionfinal MultOpMultOp()final BigDecimalfinal Stringfinal StreamSqlStatementfinal booleanfinal PartitioningSpecfinal ExpressionvoidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.final Expressionfinal RelOpRelOp()protected booleanseeTYPE()final SelectExpressionSelect()final SelectExpressionfinal SelectItemfinal List<SelectItem>final SelectTableStatementvoidfinal ShowDatabasesStatementfinal ShowEnginesStatementfinal ShowSequencesStatementfinal ShowStreamsStatementfinal ShowStreamStatementfinal ShowTablesStatementfinal Expressionfinal org.yamcs.yarch.streamsql.StreamExpressionfinal StreamSqlStatementfinal TableColumnDefinitionfinal voidfinal TupleDefinitionfinal TupleSourceExpressionfinal Expressionfinal Expressionfinal UpdateTableStatementfinal WindowSpecification
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
StreamSqlParser
Constructor with InputStream. -
StreamSqlParser
Constructor with InputStream and supplied encoding -
StreamSqlParser
Constructor. -
StreamSqlParser
Constructor with generated Token Manager.
-
-
Method Details
-
seeTYPE
protected boolean seeTYPE() -
setArgs
-
DataTypeDefinition
- Throws:
ParseException
-
OneStatement
- Throws:
ParseExceptionStreamSqlException
-
StreamSqlStatement
- Throws:
ParseExceptionStreamSqlException
-
CreateInputStreamStatement
public final CreateInputStreamStatement CreateInputStreamStatement() throws ParseException, StreamSqlException- Throws:
ParseExceptionStreamSqlException
-
CreateTableStatement
- Throws:
ParseExceptionStreamSqlException
-
TableColumnDefinition
public final TableColumnDefinition TableColumnDefinition() throws ParseException, StreamSqlException- Throws:
ParseExceptionStreamSqlException
-
TableOption
- Throws:
ParseExceptionStreamSqlException
-
PartitioningSpec
- Throws:
ParseExceptionStreamSqlException
-
TableFormatOption
public final CreateTableStatement.TableFormatOption TableFormatOption() throws ParseException, StreamSqlException- Throws:
ParseExceptionStreamSqlException
-
CreateStreamStatement
public final CreateStreamStatement CreateStreamStatement() throws ParseException, StreamSqlException- Throws:
ParseExceptionStreamSqlException
-
SelectTableStatement
- Throws:
ParseExceptionStreamSqlException
-
CloseStreamStatement
- Throws:
ParseExceptionStreamSqlException
-
DropTableStatement
- Throws:
ParseExceptionStreamSqlException
-
ShowStreamsStatement
- Throws:
ParseExceptionStreamSqlException
-
ShowTablesStatement
- Throws:
ParseExceptionStreamSqlException
-
ShowStreamStatement
- Throws:
ParseExceptionStreamSqlException
-
ShowEnginesStatement
- Throws:
ParseExceptionStreamSqlException
-
ShowDatabasesStatement
public final ShowDatabasesStatement ShowDatabasesStatement() throws ParseException, StreamSqlException- Throws:
ParseExceptionStreamSqlException
-
ShowSequencesStatement
public final ShowSequencesStatement ShowSequencesStatement() throws ParseException, StreamSqlException- Throws:
ParseExceptionStreamSqlException
-
DescribeStatement
- Throws:
ParseExceptionStreamSqlException
-
AlterSequenceStatement
public final AlterSequenceStatement AlterSequenceStatement() throws ParseException, StreamSqlException- Throws:
ParseExceptionStreamSqlException
-
AlterTableStatement
- Throws:
ParseExceptionStreamSqlException
-
StreamExpression
public final org.yamcs.yarch.streamsql.StreamExpression StreamExpression() throws ParseException, StreamSqlException- Throws:
ParseExceptionStreamSqlException
-
IntoClause
- Throws:
ParseExceptionStreamSqlException
-
InsertStatement
- Throws:
ParseExceptionStreamSqlException
-
MergeExpression
public final org.yamcs.yarch.streamsql.MergeExpression MergeExpression() throws ParseException, StreamSqlException- Throws:
ParseExceptionStreamSqlException
-
DeleteStatement
- Throws:
ParseExceptionStreamSqlException
-
UpdateTableStatement
- Throws:
ParseExceptionStreamSqlException
-
Expression
- Throws:
ParseExceptionStreamSqlException
-
AndExpression
- Throws:
ParseExceptionStreamSqlException
-
UnaryLogicalExpression
- Throws:
ParseExceptionStreamSqlException
-
RelationalExpression
- Throws:
ParseExceptionStreamSqlException
-
ExpressionList
- Throws:
ParseExceptionStreamSqlException
-
InClause
- Throws:
ParseExceptionStreamSqlException
-
BetweenClause
- Throws:
ParseExceptionStreamSqlException
-
LikeClause
- Throws:
ParseExceptionStreamSqlException
-
IsNullClause
- Throws:
ParseExceptionStreamSqlException
-
SimpleExpression
- Throws:
ParseExceptionStreamSqlException
-
AdditiveExpression
- Throws:
ParseExceptionStreamSqlException
-
MultiplicativeExpression
- Throws:
ParseExceptionStreamSqlException
-
ExponentExpression
- Throws:
ParseExceptionStreamSqlException
-
UnaryExpression
- Throws:
ParseExceptionStreamSqlException
-
PrimaryExpression
- Throws:
ParseExceptionStreamSqlException
-
ObjectName
- Throws:
ParseExceptionStreamSqlException
-
BitwiseOp
- Throws:
ParseExceptionStreamSqlException
-
AddOp
- Throws:
ParseExceptionStreamSqlException
-
MultOp
- Throws:
ParseExceptionStreamSqlException
-
RelOp
- Throws:
ParseExceptionStreamSqlException
-
Arguments
- Throws:
ParseExceptionStreamSqlException
-
Argument
- Throws:
ParseExceptionStreamSqlException
-
SelectExpression
- Throws:
ParseExceptionStreamSqlException
-
Select
- Throws:
ParseExceptionStreamSqlException
-
SelectList
- Throws:
ParseExceptionStreamSqlException
-
SelectItem
- Throws:
ParseExceptionStreamSqlException
-
WindowSpecification
- Throws:
ParseExceptionStreamSqlException
-
TupleSourceExpression
public final TupleSourceExpression TupleSourceExpression() throws ParseException, StreamSqlException- Throws:
ParseExceptionStreamSqlException
-
TupleDefinition
- Throws:
ParseExceptionStreamSqlException
-
OrderClause
- Throws:
ParseExceptionStreamSqlException
-
FunctionCall
- Throws:
ParseExceptionStreamSqlException
-
NumericConstant
- Throws:
ParseExceptionStreamSqlException
-
ID
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-