Package org.yamcs.yarch.streamsql
Class StreamSqlParser
- java.lang.Object
-
- org.yamcs.yarch.streamsql.StreamSqlParser
-
- All Implemented Interfaces:
StreamSqlParserConstants
public class StreamSqlParser extends Object implements StreamSqlParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
Next token.Token
token
Current token.StreamSqlParserTokenManager
token_source
Generated Token Manager.-
Fields inherited from interface org.yamcs.yarch.streamsql.StreamSqlParserConstants
DEFAULT, DIGIT, EOF, EXPONENT, K_ADVANCE, K_AFAP, K_ALL, K_ALTER, K_AND, K_ANY, 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_REVERSE, K_ROW, K_ROWS, K_SAMPLE, K_SELECT, K_SET, K_SHOW, K_SHRT, K_SIZE, K_SMALLINT, K_SPEED, K_STEP_BY_STEP, K_STREAM, K_STREAMS, K_STRING, K_TABLE, K_TABLE_FORMAT, K_TABLES, K_TABLESPACE, K_TIME, K_TIME_AND_VALUE, K_TUPLES, K_UNIQUE, K_UPDATE, K_UPSERT, K_UPSERT_APPEND, K_USE, K_USING, K_VALUE, K_WHEN, K_WHERE, 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
Constructors Constructor Description StreamSqlParser(InputStream stream)
Constructor with InputStream.StreamSqlParser(InputStream stream, String encoding)
Constructor with InputStream and supplied encodingStreamSqlParser(Reader stream)
Constructor.StreamSqlParser(StreamSqlParserTokenManager tm)
Constructor with generated Token Manager.
-
Method Summary
-
-
-
Field Detail
-
token_source
public StreamSqlParserTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
StreamSqlParser
public StreamSqlParser(InputStream stream)
Constructor with InputStream.
-
StreamSqlParser
public StreamSqlParser(InputStream stream, String encoding)
Constructor with InputStream and supplied encoding
-
StreamSqlParser
public StreamSqlParser(Reader stream)
Constructor.
-
StreamSqlParser
public StreamSqlParser(StreamSqlParserTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
seeTYPE
protected boolean seeTYPE()
-
setArgs
public void setArgs(Object[] args)
-
DataTypeDefinition
public final DataType DataTypeDefinition() throws ParseException
- Throws:
ParseException
-
OneStatement
public final StreamSqlStatement OneStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
StreamSqlStatement
public final StreamSqlStatement StreamSqlStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
CreateInputStreamStatement
public final CreateInputStreamStatement CreateInputStreamStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
CreateTableStatement
public final CreateTableStatement CreateTableStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
TableColumnDefinition
public final TableColumnDefinition TableColumnDefinition() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
TableOption
public final void TableOption(CreateTableStatement cts) throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
PartitioningSpec
public final PartitioningSpec PartitioningSpec() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
CreateOutputStreamStatement
public final CreateOutputStreamStatement CreateOutputStreamStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
CreateStreamStatement
public final CreateStreamStatement CreateStreamStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
SelectTableStatement
public final SelectTableStatement SelectTableStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
SpeedLimitStreamExpression
public final SpeedLimitStreamExpression SpeedLimitStreamExpression() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
CloseStreamStatement
public final CloseStreamStatement CloseStreamStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
DropTableStatement
public final DropTableStatement DropTableStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
ShowStreamsStatement
public final ShowStreamsStatement ShowStreamsStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
ShowTablesStatement
public final ShowTablesStatement ShowTablesStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
ShowStreamStatement
public final ShowStreamStatement ShowStreamStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
ShowEnginesStatement
public final ShowEnginesStatement ShowEnginesStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
ShowDatabasesStatement
public final ShowDatabasesStatement ShowDatabasesStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
DescribeStatement
public final DescribeStatement DescribeStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
StreamExpression
public final org.yamcs.yarch.streamsql.StreamExpression StreamExpression() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
IntoClause
public final void IntoClause() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
ColumnValues
public final void ColumnValues() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
ColumnValue
public final void ColumnValue() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
InsertStatement
public final InsertStatement InsertStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
UpsertStatement
public final InsertStatement UpsertStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
InsertAppendStatement
public final InsertStatement InsertAppendStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
UpsertAppendStatement
public final InsertStatement UpsertAppendStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
LoadStatement
public final InsertStatement LoadStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
MergeExpression
public final org.yamcs.yarch.streamsql.MergeExpression MergeExpression() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
DeleteStatement
public final DeleteStatement DeleteStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
UpdateTableStatement
public final UpdateTableStatement UpdateTableStatement() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
SpeedSpec
public final SpeedSpec SpeedSpec() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
Expression
public final Expression Expression() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
AndExpression
public final Expression AndExpression() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
UnaryLogicalExpression
public final Expression UnaryLogicalExpression() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
RelationalExpression
public final Expression RelationalExpression() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
ExpressionList
public final List<Expression> ExpressionList() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
InClause
public final InClause InClause() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
BetweenClause
public final void BetweenClause() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
LikeClause
public final LikeClause LikeClause() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
IsNullClause
public final void IsNullClause() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
SimpleExpression
public final Expression SimpleExpression() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
MultiplicativeExpression
public final Expression MultiplicativeExpression() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
ExponentExpression
public final Expression ExponentExpression() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
UnaryExpression
public final Expression UnaryExpression() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
PrimaryExpression
public final Expression PrimaryExpression() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
ObjectName
public final String ObjectName() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
AddOp
public final AddOp AddOp() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
MultOp
public final MultOp MultOp() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
RelOp
public final RelOp RelOp() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
Arguments
public final void Arguments() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
Argument
public final void Argument() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
SelectExpression
public final SelectExpression SelectExpression() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
Select
public final SelectExpression Select() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
SelectList
public final List<SelectItem> SelectList() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
SelectItem
public final SelectItem SelectItem() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
WindowSpecification
public final WindowSpecification WindowSpecification() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
TupleSourceExpression
public final TupleSourceExpression TupleSourceExpression() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
TupleDefinition
public final TupleDefinition TupleDefinition() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
OrderClause
public final boolean OrderClause() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
FunctionCall
public final Expression FunctionCall() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
FunctionArgumentList
public final List<Expression> FunctionArgumentList() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
NumericConstant
public final BigDecimal NumericConstant() throws ParseException, StreamSqlException
- Throws:
ParseException
StreamSqlException
-
ID
public final void ID(String id) throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(InputStream stream)
Reinitialise.
-
ReInit
public void ReInit(InputStream stream, String encoding)
Reinitialise.
-
ReInit
public void ReInit(Reader stream)
Reinitialise.
-
ReInit
public void ReInit(StreamSqlParserTokenManager tm)
Reinitialise.
-
getNextToken
public final Token getNextToken()
Get the next Token.
-
getToken
public final Token getToken(int index)
Get the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-