Package org.apache.ignite.internal.sql
Class SqlParser
- java.lang.Object
-
- org.apache.ignite.internal.sql.SqlParser
-
public class SqlParser extends Object
SQL parser.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSTATISTICSLexema: STATISTICS.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringlastCommandSql()Last successfully parsed sql statement.SqlCommandnextCommand()Get next command.StringremainingSql()Not yet parsed part of the sql query.
-
-
-
Field Detail
-
STATISTICS
public static final String STATISTICS
Lexema: STATISTICS.- See Also:
- Constant Field Values
-
-
Method Detail
-
nextCommand
public SqlCommand nextCommand()
Get next command.- Returns:
- Command or
nullif end of script is reached.
-
remainingSql
public String remainingSql()
Not yet parsed part of the sql query. Result is invalid if parsing error was thrown.
-
lastCommandSql
public String lastCommandSql()
Last successfully parsed sql statement. It corresponds to the last command returned bynextCommand().
-
-