Class SQLAlterTableAddIndex
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.statement.SQLAlterTableAddIndex
-
- All Implemented Interfaces:
SQLIndex,SQLObject,SQLAlterTableItem
public class SQLAlterTableAddIndex extends SQLObjectImpl implements SQLAlterTableItem, SQLIndex
-
-
Field Summary
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLAlterTableAddIndex()
-
Method Summary
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, clone, cloneTo, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setHint, setParent, setSource, setSourceLine, toString
-
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, clone, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setParent, setSource
-
-
-
-
Method Detail
-
getIndexDefinition
public SQLIndexDefinition getIndexDefinition()
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Specified by:
accept0in classSQLObjectImpl
-
isUnique
public boolean isUnique()
-
setUnique
public void setUnique(boolean unique)
-
getItems
public List<SQLSelectOrderByItem> getItems()
-
addItem
public void addItem(SQLSelectOrderByItem item)
-
getName
public SQLName getName()
-
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)
-
isKey
public boolean isKey()
-
setKey
public void setKey(boolean key)
-
cloneTo
public void cloneTo(MySqlTableIndex x)
-
cloneTo
public void cloneTo(MySqlKey x)
-
getComment
public SQLExpr getComment()
-
setComment
public void setComment(SQLExpr comment)
-
getKeyBlockSize
public SQLExpr getKeyBlockSize()
-
setKeyBlockSize
public void setKeyBlockSize(SQLExpr keyBlockSize)
-
getParserName
public String getParserName()
-
setParserName
public void setParserName(String parserName)
-
isHashMapType
public boolean isHashMapType()
-
setHashMapType
public void setHashMapType(boolean hashMapType)
-
getOption
protected SQLExpr getOption(long hash64)
-
getDistanceMeasure
public String getDistanceMeasure()
-
getAlgorithm
public String getAlgorithm()
-
getOptions
public List<SQLAssignItem> getOptions()
-
isGlobal
public boolean isGlobal()
-
setGlobal
public void setGlobal(boolean global)
-
getDbPartitionBy
public SQLExpr getDbPartitionBy()
-
setDbPartitionBy
public void setDbPartitionBy(SQLExpr x)
-
getTablePartitionBy
public SQLExpr getTablePartitionBy()
-
setTablePartitionBy
public void setTablePartitionBy(SQLExpr x)
-
getTablePartitions
public SQLExpr getTablePartitions()
-
setTablePartitions
public void setTablePartitions(SQLExpr x)
-
getCovering
public List<SQLName> getCovering()
- Specified by:
getCoveringin interfaceSQLIndex
-
getColumns
public List<SQLSelectOrderByItem> getColumns()
- Specified by:
getColumnsin interfaceSQLIndex
-
-