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, validateFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept0(MySqlASTVisitor visitor) voidaccept0(SQLASTVisitor visitor) voidaddColumn(SQLSelectOrderByItem column) voidbooleanapplyColumnRename(SQLName columnName, SQLColumnDefinition to) booleanapplyDropColumn(SQLName columnName) clone()getName()protected SQLExprgetOption(long hash64) booleanisGlobal()booleanisLocal()voidsetAnalyzerName(SQLName analyzerName) voidvoidsetCovering(List<SQLName> covering) voidvoidsetGlobal(boolean global) voidsetIndexAnalyzerName(SQLName indexAnalyzerName) voidsetIndexType(String indexType) voidsetLocal(boolean local) voidvoidsetPartitioning(SQLPartitionBy sqlPartitioning) voidsetQueryAnalyzerName(SQLName queryAnalyzerName) voidvoidvoidsetWithDicName(SQLName withDicName) 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, simplifyMethods 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, putAttribute, setHint, setParent, setSourceColumn, setSourceLine, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParent
-
Constructor Details
-
MySqlTableIndex
public MySqlTableIndex()
-
-
Method Details
-
getIndexDefinition
-
getName
- Specified by:
getNamein interfaceSQLConstraint- Overrides:
getNamein classSQLConstraintImpl
-
getIndexType
-
setIndexType
-
setName
- Specified by:
setNamein interfaceSQLConstraint- Overrides:
setNamein classSQLConstraintImpl
-
getColumns
- Specified by:
getColumnsin interfaceSQLIndex
-
addColumn
-
accept0
- Specified by:
accept0in classSQLObjectImpl
-
accept0
- Specified by:
accept0in interfaceMySqlObject
-
clone
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLTableElement- Overrides:
clonein classSQLObjectImpl
-
applyColumnRename
-
applyDropColumn
-
addOption
-
getOption
-
getOption
-
getDistanceMeasure
-
getAlgorithm
-
getOptions
-
getComment
- Specified by:
getCommentin interfaceSQLConstraint- Overrides:
getCommentin classSQLConstraintImpl
-
setComment
- Specified by:
setCommentin interfaceSQLConstraint- Overrides:
setCommentin classSQLConstraintImpl
-
getDbPartitionBy
-
setDbPartitionBy
-
getTablePartitions
-
setTablePartitions
-
getTablePartitionBy
-
setTablePartitionBy
-
setCovering
-
isGlobal
public boolean isGlobal() -
setGlobal
public void setGlobal(boolean global) -
isLocal
public boolean isLocal() -
setLocal
public void setLocal(boolean local) -
getCovering
- Specified by:
getCoveringin interfaceSQLIndex
-
getIndexAnalyzerName
-
setIndexAnalyzerName
-
getQueryAnalyzerName
-
setQueryAnalyzerName
-
setPartitioning
-
getPartitioning
-
getWithDicName
-
setWithDicName
-
getAnalyzerName
-
setAnalyzerName
-