Package org.yamcs.yarch.streamsql
Class StreamSqlParser
java.lang.Object
org.yamcs.yarch.streamsql.StreamSqlParser
- All Implemented Interfaces:
StreamSqlParserConstants
-
Field Summary
Modifier 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
ConstructorDescriptionStreamSqlParser
(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 Expression
final AddOp
AddOp()
final AlterSequenceStatement
final AlterTableStatement
final Expression
final void
Argument()
final void
final void
final BitwiseOp
final CloseStreamStatement
final CreateStreamStatement
final CreateTableStatement
final DataType
final DeleteStatement
final DescribeStatement
final void
Disable tracing.final DropTableStatement
final void
Enable tracing.final Expression
final Expression
final List<Expression>
final Expression
Generate ParseException.final Token
Get the next Token.final Token
getToken
(int index) Get the specific Token.final void
final InClause
InClause()
final InsertStatement
final void
final IsNullClause
final LikeClause
final org.yamcs.yarch.streamsql.MergeExpression
final Expression
final MultOp
MultOp()
final BigDecimal
final String
final StreamSqlStatement
final boolean
final PartitioningSpec
final Expression
void
ReInit
(InputStream stream) Reinitialise.void
ReInit
(InputStream stream, String encoding) Reinitialise.void
Reinitialise.void
Reinitialise.final Expression
final RelOp
RelOp()
protected boolean
seeTYPE()
final SelectExpression
Select()
final SelectExpression
final SelectItem
final List<SelectItem>
final SelectTableStatement
void
final ShowDatabasesStatement
final ShowEnginesStatement
final ShowSequencesStatement
final ShowStreamsStatement
final ShowStreamStatement
final ShowTablesStatement
final Expression
final org.yamcs.yarch.streamsql.StreamExpression
final StreamSqlStatement
final TableColumnDefinition
final void
final TupleDefinition
final TupleSourceExpression
final Expression
final Expression
final UpdateTableStatement
final 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:
ParseException
StreamSqlException
-
StreamSqlStatement
- Throws:
ParseException
StreamSqlException
-
CreateInputStreamStatement
public final CreateInputStreamStatement CreateInputStreamStatement() throws ParseException, StreamSqlException- Throws:
ParseException
StreamSqlException
-
CreateTableStatement
- Throws:
ParseException
StreamSqlException
-
TableColumnDefinition
public final TableColumnDefinition TableColumnDefinition() throws ParseException, StreamSqlException- Throws:
ParseException
StreamSqlException
-
TableOption
- Throws:
ParseException
StreamSqlException
-
PartitioningSpec
- Throws:
ParseException
StreamSqlException
-
TableFormatOption
public final CreateTableStatement.TableFormatOption TableFormatOption() throws ParseException, StreamSqlException- Throws:
ParseException
StreamSqlException
-
CreateStreamStatement
public final CreateStreamStatement CreateStreamStatement() throws ParseException, StreamSqlException- Throws:
ParseException
StreamSqlException
-
SelectTableStatement
- Throws:
ParseException
StreamSqlException
-
CloseStreamStatement
- Throws:
ParseException
StreamSqlException
-
DropTableStatement
- Throws:
ParseException
StreamSqlException
-
ShowStreamsStatement
- Throws:
ParseException
StreamSqlException
-
ShowTablesStatement
- Throws:
ParseException
StreamSqlException
-
ShowStreamStatement
- Throws:
ParseException
StreamSqlException
-
ShowEnginesStatement
- Throws:
ParseException
StreamSqlException
-
ShowDatabasesStatement
public final ShowDatabasesStatement ShowDatabasesStatement() throws ParseException, StreamSqlException- Throws:
ParseException
StreamSqlException
-
ShowSequencesStatement
public final ShowSequencesStatement ShowSequencesStatement() throws ParseException, StreamSqlException- Throws:
ParseException
StreamSqlException
-
DescribeStatement
- Throws:
ParseException
StreamSqlException
-
AlterSequenceStatement
public final AlterSequenceStatement AlterSequenceStatement() throws ParseException, StreamSqlException- Throws:
ParseException
StreamSqlException
-
AlterTableStatement
- Throws:
ParseException
StreamSqlException
-
StreamExpression
public final org.yamcs.yarch.streamsql.StreamExpression StreamExpression() throws ParseException, StreamSqlException- Throws:
ParseException
StreamSqlException
-
IntoClause
- Throws:
ParseException
StreamSqlException
-
InsertStatement
- Throws:
ParseException
StreamSqlException
-
MergeExpression
public final org.yamcs.yarch.streamsql.MergeExpression MergeExpression() throws ParseException, StreamSqlException- Throws:
ParseException
StreamSqlException
-
DeleteStatement
- Throws:
ParseException
StreamSqlException
-
UpdateTableStatement
- Throws:
ParseException
StreamSqlException
-
Expression
- Throws:
ParseException
StreamSqlException
-
AndExpression
- Throws:
ParseException
StreamSqlException
-
UnaryLogicalExpression
- Throws:
ParseException
StreamSqlException
-
RelationalExpression
- Throws:
ParseException
StreamSqlException
-
ExpressionList
- Throws:
ParseException
StreamSqlException
-
InClause
- Throws:
ParseException
StreamSqlException
-
BetweenClause
- Throws:
ParseException
StreamSqlException
-
LikeClause
- Throws:
ParseException
StreamSqlException
-
IsNullClause
- Throws:
ParseException
StreamSqlException
-
SimpleExpression
- Throws:
ParseException
StreamSqlException
-
AdditiveExpression
- Throws:
ParseException
StreamSqlException
-
MultiplicativeExpression
- Throws:
ParseException
StreamSqlException
-
ExponentExpression
- Throws:
ParseException
StreamSqlException
-
UnaryExpression
- Throws:
ParseException
StreamSqlException
-
PrimaryExpression
- Throws:
ParseException
StreamSqlException
-
ObjectName
- Throws:
ParseException
StreamSqlException
-
BitwiseOp
- Throws:
ParseException
StreamSqlException
-
AddOp
- Throws:
ParseException
StreamSqlException
-
MultOp
- Throws:
ParseException
StreamSqlException
-
RelOp
- Throws:
ParseException
StreamSqlException
-
Arguments
- Throws:
ParseException
StreamSqlException
-
Argument
- Throws:
ParseException
StreamSqlException
-
SelectExpression
- Throws:
ParseException
StreamSqlException
-
Select
- Throws:
ParseException
StreamSqlException
-
SelectList
- Throws:
ParseException
StreamSqlException
-
SelectItem
- Throws:
ParseException
StreamSqlException
-
WindowSpecification
- Throws:
ParseException
StreamSqlException
-
TupleSourceExpression
public final TupleSourceExpression TupleSourceExpression() throws ParseException, StreamSqlException- Throws:
ParseException
StreamSqlException
-
TupleDefinition
- Throws:
ParseException
StreamSqlException
-
OrderClause
- Throws:
ParseException
StreamSqlException
-
FunctionCall
- Throws:
ParseException
StreamSqlException
-
NumericConstant
- Throws:
ParseException
StreamSqlException
-
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.
-