Class GridSqlCreateIndex
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.sql.GridSqlStatement
-
- org.apache.ignite.internal.processors.query.h2.sql.GridSqlCreateIndex
-
public class GridSqlCreateIndex extends GridSqlStatement
CREATE INDEX statement.
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.query.h2.sql.GridSqlStatement
limit
-
-
Constructor Summary
Constructors Constructor Description GridSqlCreateIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSQL()booleanifNotExists()voidifNotExists(boolean ifNotExists)QueryIndexindex()voidindex(QueryIndex idx)StringschemaName()voidschemaName(String schemaName)StringtableName()voidtableName(String tblName)
-
-
-
Method Detail
-
schemaName
public String schemaName()
- Returns:
- Schema name for new index.
-
schemaName
public void schemaName(String schemaName)
- Parameters:
schemaName- Schema name for new index.
-
tableName
public String tableName()
- Returns:
- Table name.
-
tableName
public void tableName(String tblName)
- Parameters:
tblName- Table name.
-
ifNotExists
public boolean ifNotExists()
- Returns:
- whether attempt to create the index should be made only if it does not exist.
-
ifNotExists
public void ifNotExists(boolean ifNotExists)
- Parameters:
ifNotExists- whether attempt to create the index should be made only if it does not exist.
-
index
public QueryIndex index()
- Returns:
- Index to create.
-
index
public void index(QueryIndex idx)
- Parameters:
idx- Index to create.
-
getSQL
public String getSQL()
- Specified by:
getSQLin classGridSqlStatement- Returns:
- Generate sql.
-
-