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
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected SQLTableSource
protected List<SQLAssignItem>
protected SQLExternalRecordFormat
protected SQLName
protected boolean
protected List<SQLAssignItem>
protected SQLName
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
accept0
(SQLASTVisitor visitor) void
addItem
(SQLSelectOrderByItem item) void
clone()
getIn()
getItems()
getName()
getTable()
getType()
getUsing()
boolean
boolean
boolean
isGlobal()
boolean
boolean
isLocal()
boolean
void
void
setConcurrently
(boolean concurrently) void
void
setDeferedRebuild
(boolean deferedRebuild) void
setGlobal
(boolean global) void
setIfNotExists
(boolean ifNotExists) void
void
void
setLocal
(boolean local) void
void
void
void
setStoring
(boolean storing) void
void
setTable
(SQLTableSource table) void
void
void
void
void
Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
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, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, 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, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent
Methods inherited from interface com.alibaba.druid.sql.ast.SQLStatement
getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString
-
Field Details
-
tablespace
-
deferedRebuild
protected boolean deferedRebuild -
in
-
rowFormat
-
storedAs
-
properties
-
tableProperties
-
storing
protected boolean storing -
ifNotExists
protected boolean ifNotExists
-
-
Constructor Details
-
SQLCreateIndexStatement
public SQLCreateIndexStatement() -
SQLCreateIndexStatement
-
-
Method Details
-
getIndexDefinition
-
getTable
-
setTable
-
setTable
-
getTableName
-
getItems
-
addItem
-
getName
- Specified by:
getName
in interfaceSQLCreateStatement
-
setName
-
getType
-
setType
-
getUsing
-
setUsing
-
accept0
- Overrides:
accept0
in classSQLStatementImpl
-
getChildren
- Specified by:
getChildren
in interfaceSQLStatement
- Overrides:
getChildren
in classSQLStatementImpl
-
getSchema
-
clone
- Specified by:
clone
in interfaceSQLObject
- Specified by:
clone
in interfaceSQLStatement
- Overrides:
clone
in classSQLStatementImpl
-
getComment
-
setComment
-
getTablespace
-
setTablespace
-
isConcurrently
public boolean isConcurrently() -
setConcurrently
public void setConcurrently(boolean concurrently) -
getOptions
-
isDeferedRebuild
public boolean isDeferedRebuild() -
setDeferedRebuild
public void setDeferedRebuild(boolean deferedRebuild) -
getIn
-
setIn
-
setIn
-
getStoredAs
-
setStoredAs
-
getRowFormat
-
setRowFormat
-
getProperties
-
getTableProperties
-
addOption
-
isGlobal
public boolean isGlobal() -
setGlobal
public void setGlobal(boolean global) -
isLocal
public boolean isLocal() -
setLocal
public void setLocal(boolean local) -
getDbPartitionBy
-
setDbPartitionBy
-
getTablePartitions
-
setTablePartitions
-
getTablePartitionBy
-
setTablePartitionBy
-
isStoring
public boolean isStoring() -
setStoring
public void setStoring(boolean storing) -
getCovering
- Specified by:
getCovering
in interfaceSQLIndex
-
getColumns
- Specified by:
getColumns
in interfaceSQLIndex
-
isIfNotExists
public boolean isIfNotExists() -
setIfNotExists
public void setIfNotExists(boolean ifNotExists) -
getDDLObjectType
- Specified by:
getDDLObjectType
in interfaceSQLDDLStatement
-