Class SqlCreateIndexCommand
- java.lang.Object
-
- org.apache.ignite.internal.sql.command.SqlCreateIndexCommand
-
- All Implemented Interfaces:
SqlCommand
public class SqlCreateIndexCommand extends Object implements SqlCommand
CREATE INDEX command.
-
-
Constructor Summary
Constructors Constructor Description SqlCreateIndexCommand()Default constructor.SqlCreateIndexCommand(String schemaName, @Nullable String tblName, String idxName, boolean ifNotExists, Collection<SqlIndexColumn> cols, boolean spatial, int parallel, int inlineSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<SqlIndexColumn>columns()booleanifNotExists()StringindexName()intinlineSize()intparallel()SqlCommandparse(SqlLexer lex)Parse command.StringschemaName()voidschemaName(String schemaName)booleanspatial()SqlCreateIndexCommandspatial(boolean spatial)StringtableName()StringtoString()
-
-
-
Constructor Detail
-
SqlCreateIndexCommand
public SqlCreateIndexCommand()
Default constructor.
-
SqlCreateIndexCommand
public SqlCreateIndexCommand(String schemaName, @Nullable @Nullable String tblName, String idxName, boolean ifNotExists, Collection<SqlIndexColumn> cols, boolean spatial, int parallel, int inlineSize)
- Parameters:
schemaName- Schema name.tblName- Table name.idxName- Index name.ifNotExists- "If not exists" clause.cols- Indexed columns.spatial- Spatial flag.parallel- Count of threads to rebuild.inlineSize- Inline size.
-
-
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.
-
tableName
public String tableName()
- Returns:
- Table name.
-
indexName
public String indexName()
- Returns:
- Index name.
-
ifNotExists
public boolean ifNotExists()
- Returns:
- IF NOT EXISTS flag.
-
parallel
public int parallel()
- Returns:
- Parallelism level.
-
spatial
public boolean spatial()
- Returns:
- Spatial index flag.
-
inlineSize
public int inlineSize()
- Returns:
- Inline size.
-
spatial
public SqlCreateIndexCommand spatial(boolean spatial)
- Parameters:
spatial- Spatial index flag.- Returns:
- This instance.
-
columns
public Collection<SqlIndexColumn> columns()
- Returns:
- Columns.
-
parse
public SqlCommand parse(SqlLexer lex)
Parse command.- Specified by:
parsein interfaceSqlCommand- Parameters:
lex- Lexer.- Returns:
- This instance.
-
-