Class SqlStatisticsCommands
- java.lang.Object
-
- org.apache.ignite.internal.sql.command.SqlStatisticsCommands
-
- All Implemented Interfaces:
SqlCommand
- Direct Known Subclasses:
SqlAnalyzeCommand,SqlDropStatisticsCommand,SqlRefreshStatitsicsCommand
public abstract class SqlStatisticsCommands extends Object implements SqlCommand
Base class for statistics related commands.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<StatisticsTarget>targetsTargets to process.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSqlStatisticsCommands()protectedSqlStatisticsCommands(Collection<StatisticsTarget> targets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlCommandparse(SqlLexer lex)Parse command.protected String[]parseColumnList(SqlLexer lex, boolean allowParams)StringschemaName()voidschemaName(String schemaName)Collection<StatisticsTarget>targets()protected booleantryEnd(SqlLexer lex)Test if it is the end of command.
-
-
-
Field Detail
-
targets
protected List<StatisticsTarget> targets
Targets to process.
-
-
Constructor Detail
-
SqlStatisticsCommands
protected SqlStatisticsCommands()
-
SqlStatisticsCommands
protected SqlStatisticsCommands(Collection<StatisticsTarget> targets)
-
-
Method Detail
-
schemaName
public String schemaName()
- Specified by:
schemaNamein interfaceSqlCommand- Returns:
- Schema name.
-
schemaName
public void schemaName(String schemaName)
- Specified by:
schemaNamein interfaceSqlCommand- Parameters:
schemaName- Schema name.
-
targets
public Collection<StatisticsTarget> targets()
- Returns:
- Analyze targets.
-
parse
public SqlCommand parse(SqlLexer lex)
Parse command.- Specified by:
parsein interfaceSqlCommand- Parameters:
lex- Lexer.- Returns:
- This instance.
-
tryEnd
protected boolean tryEnd(SqlLexer lex)
Test if it is the end of command.- Parameters:
lex- Sql lexer.- Returns:
trueif end of command found,false- otherwise.
-
-