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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept0
(MySqlASTVisitor visitor) void
accept0
(SQLASTVisitor visitor) void
addColumn
(SQLSelectOrderByItem column) void
boolean
applyColumnRename
(SQLName columnName, SQLColumnDefinition to) boolean
applyDropColumn
(SQLName columnName) clone()
getName()
protected SQLExpr
getOption
(long hash64) boolean
isGlobal()
boolean
isLocal()
void
setAnalyzerName
(SQLName analyzerName) void
void
setCovering
(List<SQLName> covering) void
void
setGlobal
(boolean global) void
setIndexAnalyzerName
(SQLName indexAnalyzerName) void
setIndexType
(String indexType) void
setLocal
(boolean local) void
void
setQueryAnalyzerName
(SQLName queryAnalyzerName) void
void
void
setWithDicName
(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, simplify
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, 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, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent
-
Constructor Details
-
MySqlTableIndex
public MySqlTableIndex()
-
-
Method Details
-
getIndexDefinition
-
getName
- Specified by:
getName
in interfaceSQLConstraint
- Overrides:
getName
in classSQLConstraintImpl
-
getIndexType
-
setIndexType
-
setName
- Specified by:
setName
in interfaceSQLConstraint
- Overrides:
setName
in classSQLConstraintImpl
-
getColumns
- Specified by:
getColumns
in interfaceSQLIndex
-
addColumn
-
accept0
- Specified by:
accept0
in classSQLObjectImpl
-
accept0
- Specified by:
accept0
in interfaceMySqlObject
-
clone
- Specified by:
clone
in interfaceSQLObject
- Specified by:
clone
in interfaceSQLTableElement
- Overrides:
clone
in classSQLObjectImpl
-
applyColumnRename
-
applyDropColumn
-
addOption
-
getOption
-
getOption
-
getDistanceMeasure
-
getAlgorithm
-
getOptions
-
getComment
- Specified by:
getComment
in interfaceSQLConstraint
- Overrides:
getComment
in classSQLConstraintImpl
-
setComment
- Specified by:
setComment
in interfaceSQLConstraint
- Overrides:
setComment
in 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:
getCovering
in interfaceSQLIndex
-
getIndexAnalyzerName
-
setIndexAnalyzerName
-
getQueryAnalyzerName
-
setQueryAnalyzerName
-
getWithDicName
-
setWithDicName
-
getAnalyzerName
-
setAnalyzerName
-