Class MySqlTableIndex
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
-
- com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlTableIndex
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLIndex,SQLObject,SQLConstraint,SQLTableElement,MySqlObject
public class MySqlTableIndex extends SQLConstraintImpl implements SQLTableElement, SQLIndex, MySqlObject
-
-
Field Summary
-
Fields inherited from class com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
dbType, enable, hints, rely, validate
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description MySqlTableIndex()
-
Method Summary
-
Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLConstraintImpl
cloneTo, cloneTo, getDbType, getEnable, getHints, getRely, getValidate, replace, setDbType, setEnable, setHints, setName, setRely, setValidate, simplify
-
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, 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.statement.SQLConstraint
setHasConstraint
-
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
-
-
-
-
Method Detail
-
getIndexDefinition
public SQLIndexDefinition getIndexDefinition()
-
getName
public SQLName getName()
- Specified by:
getNamein interfaceSQLConstraint- Overrides:
getNamein classSQLConstraintImpl
-
getIndexType
public String getIndexType()
-
setIndexType
public void setIndexType(String indexType)
-
setName
public void setName(SQLName name)
- Specified by:
setNamein interfaceSQLConstraint- Overrides:
setNamein classSQLConstraintImpl
-
getColumns
public List<SQLSelectOrderByItem> getColumns()
- Specified by:
getColumnsin interfaceSQLIndex
-
addColumn
public void addColumn(SQLSelectOrderByItem column)
-
accept0
public void accept0(SQLASTVisitor visitor)
- Specified by:
accept0in classSQLObjectImpl
-
accept0
public void accept0(MySqlASTVisitor visitor)
- Specified by:
accept0in interfaceMySqlObject
-
clone
public MySqlTableIndex clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLTableElement- Overrides:
clonein classSQLObjectImpl
-
applyColumnRename
public boolean applyColumnRename(SQLName columnName, SQLColumnDefinition to)
-
applyDropColumn
public boolean applyDropColumn(SQLName columnName)
-
getOption
protected SQLExpr getOption(long hash64)
-
getDistanceMeasure
public String getDistanceMeasure()
-
getAlgorithm
public String getAlgorithm()
-
getOptions
public List<SQLAssignItem> getOptions()
-
getComment
public SQLExpr getComment()
- Specified by:
getCommentin interfaceSQLConstraint- Overrides:
getCommentin classSQLConstraintImpl
-
setComment
public void setComment(SQLExpr x)
- Specified by:
setCommentin interfaceSQLConstraint- Overrides:
setCommentin classSQLConstraintImpl
-
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)
-
isGlobal
public boolean isGlobal()
-
setGlobal
public void setGlobal(boolean global)
-
isLocal
public boolean isLocal()
-
setLocal
public void setLocal(boolean local)
-
getCovering
public List<SQLName> getCovering()
- Specified by:
getCoveringin interfaceSQLIndex
-
getIndexAnalyzerName
public SQLName getIndexAnalyzerName()
-
setIndexAnalyzerName
public void setIndexAnalyzerName(SQLName indexAnalyzerName)
-
getQueryAnalyzerName
public SQLName getQueryAnalyzerName()
-
setQueryAnalyzerName
public void setQueryAnalyzerName(SQLName queryAnalyzerName)
-
setPartitioning
public void setPartitioning(SQLPartitionBy sqlPartitioning)
-
getPartitioning
public SQLPartitionBy getPartitioning()
-
getWithDicName
public SQLName getWithDicName()
-
setWithDicName
public void setWithDicName(SQLName withDicName)
-
getAnalyzerName
public SQLName getAnalyzerName()
-
setAnalyzerName
public void setAnalyzerName(SQLName analyzerName)
-
-