Class SQLCreateIndexStatement
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLStatementImpl
-
- com.alibaba.druid.sql.ast.statement.SQLCreateIndexStatement
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLIndex,SQLObject,SQLStatement,SQLCreateStatement,SQLDDLStatement
- Direct Known Subclasses:
OracleCreateIndexStatement
public class SQLCreateIndexStatement extends SQLStatementImpl implements SQLCreateStatement, SQLIndex
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.alibaba.druid.sql.ast.statement.SQLDDLStatement
SQLDDLStatement.DDLObjectType
-
-
Field Summary
Fields Modifier and Type Field Description protected booleandeferedRebuildprotected booleanifNotExistsprotected SQLTableSourceinprotected List<SQLAssignItem>propertiesprotected SQLExternalRecordFormatrowFormatprotected SQLNamestoredAsprotected booleanstoringprotected List<SQLAssignItem>tablePropertiesprotected SQLNametablespace-
Fields inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
afterSemi, dbType, headHints
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLCreateIndexStatement()SQLCreateIndexStatement(DbType dbType)
-
Method Summary
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
cloneTo, getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString, toUnformattedString
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, cloneTo, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setHint, setParent, setSource, setSourceLine
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setParent, setSource
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLStatement
getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString
-
-
-
-
Field Detail
-
tablespace
protected SQLName tablespace
-
deferedRebuild
protected boolean deferedRebuild
-
in
protected SQLTableSource in
-
rowFormat
protected SQLExternalRecordFormat rowFormat
-
storedAs
protected SQLName storedAs
-
properties
protected List<SQLAssignItem> properties
-
tableProperties
protected List<SQLAssignItem> tableProperties
-
storing
protected boolean storing
-
ifNotExists
protected boolean ifNotExists
-
-
Constructor Detail
-
SQLCreateIndexStatement
public SQLCreateIndexStatement()
-
SQLCreateIndexStatement
public SQLCreateIndexStatement(DbType dbType)
-
-
Method Detail
-
getIndexDefinition
public SQLIndexDefinition getIndexDefinition()
-
getTable
public SQLTableSource getTable()
-
setTable
public void setTable(SQLName table)
-
setTable
public void setTable(SQLTableSource table)
-
getTableName
public String getTableName()
-
getItems
public List<SQLSelectOrderByItem> getItems()
-
addItem
public void addItem(SQLSelectOrderByItem item)
-
getName
public SQLName getName()
- Specified by:
getNamein interfaceSQLCreateStatement
-
setName
public void setName(SQLName name)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getUsing
public String getUsing()
-
setUsing
public void setUsing(String using)
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLStatementImpl
-
getChildren
public List<SQLObject> getChildren()
- Specified by:
getChildrenin interfaceSQLStatement- Overrides:
getChildrenin classSQLStatementImpl
-
getSchema
public String getSchema()
-
clone
public SQLCreateIndexStatement clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Overrides:
clonein classSQLStatementImpl
-
getComment
public SQLExpr getComment()
-
setComment
public void setComment(SQLExpr x)
-
getTablespace
public SQLName getTablespace()
-
setTablespace
public void setTablespace(SQLName x)
-
isConcurrently
public boolean isConcurrently()
-
setConcurrently
public void setConcurrently(boolean concurrently)
-
getOptions
public List<SQLAssignItem> getOptions()
-
isDeferedRebuild
public boolean isDeferedRebuild()
-
setDeferedRebuild
public void setDeferedRebuild(boolean deferedRebuild)
-
getIn
public SQLTableSource getIn()
-
setIn
public void setIn(SQLName x)
-
setIn
public void setIn(SQLTableSource x)
-
getStoredAs
public SQLName getStoredAs()
-
setStoredAs
public void setStoredAs(SQLName x)
-
getRowFormat
public SQLExternalRecordFormat getRowFormat()
-
setRowFormat
public void setRowFormat(SQLExternalRecordFormat x)
-
getProperties
public List<SQLAssignItem> getProperties()
-
getTableProperties
public List<SQLAssignItem> getTableProperties()
-
isGlobal
public boolean isGlobal()
-
setGlobal
public void setGlobal(boolean global)
-
isLocal
public boolean isLocal()
-
setLocal
public void setLocal(boolean local)
-
getDbPartitionBy
public SQLExpr getDbPartitionBy()
-
setDbPartitionBy
public void setDbPartitionBy(SQLExpr x)
-
getTablePartitions
public SQLExpr getTablePartitions()
-
setTablePartitions
public void setTablePartitions(SQLExpr x)
-
getTablePartitionBy
public SQLExpr getTablePartitionBy()
-
setTablePartitionBy
public void setTablePartitionBy(SQLExpr x)
-
isStoring
public boolean isStoring()
-
setStoring
public void setStoring(boolean storing)
-
getCovering
public List<SQLName> getCovering()
- Specified by:
getCoveringin interfaceSQLIndex
-
getColumns
public List<SQLSelectOrderByItem> getColumns()
- Specified by:
getColumnsin interfaceSQLIndex
-
isIfNotExists
public boolean isIfNotExists()
-
setIfNotExists
public void setIfNotExists(boolean ifNotExists)
-
getDDLObjectType
public SQLDDLStatement.DDLObjectType getDDLObjectType()
- Specified by:
getDDLObjectTypein interfaceSQLDDLStatement
-
-