Package com.alibaba.druid.sql.ast
Class SQLIndexDefinition
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLIndexDefinition
-
public class SQLIndexDefinition extends SQLObjectImpl implements SQLIndex
version 1.0 Author zzy Date 2019-06-04 11:27
-
-
Field Summary
Fields Modifier and Type Field Description protected SQLPartitionBypartitioning-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLIndexDefinition()
-
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
-
-
-
-
Field Detail
-
partitioning
protected SQLPartitionBy partitioning
-
-
Method Detail
-
hasConstraint
public boolean hasConstraint()
-
setHasConstraint
public void setHasConstraint(boolean hasConstraint)
-
getSymbol
public SQLName getSymbol()
-
setSymbol
public void setSymbol(SQLName symbol)
-
isGlobal
public boolean isGlobal()
-
setGlobal
public void setGlobal(boolean global)
-
isLocal
public boolean isLocal()
-
setLocal
public void setLocal(boolean local)
-
getType
public String getType()
-
setType
public void setType(String type)
-
isHashMapType
public boolean isHashMapType()
-
setHashMapType
public void setHashMapType(boolean hashMapType)
-
isHashType
public boolean isHashType()
-
setHashType
public void setHashType(boolean hashType)
-
isIndex
public boolean isIndex()
-
setIndex
public void setIndex(boolean index)
-
isKey
public boolean isKey()
-
setKey
public void setKey(boolean key)
-
getName
public SQLName getName()
-
setName
public void setName(SQLName name)
-
getTable
public SQLTableSource getTable()
-
setTable
public void setTable(SQLTableSource table)
-
getColumns
public List<SQLSelectOrderByItem> getColumns()
- Specified by:
getColumnsin interfaceSQLIndex
-
setColumns
public void setColumns(List<SQLSelectOrderByItem> columns)
-
hasOptions
public boolean hasOptions()
-
getOptions
public SQLIndexOptions getOptions()
-
getDbPartitionBy
public SQLExpr getDbPartitionBy()
-
setDbPartitionBy
public void setDbPartitionBy(SQLExpr dbPartitionBy)
-
getTbPartitionBy
public SQLExpr getTbPartitionBy()
-
setTbPartitionBy
public void setTbPartitionBy(SQLExpr tbPartitionBy)
-
getTbPartitions
public SQLExpr getTbPartitions()
-
setTbPartitions
public void setTbPartitions(SQLExpr tbPartitions)
-
getCovering
public List<SQLName> getCovering()
- Specified by:
getCoveringin interfaceSQLIndex
-
getAnalyzerName
public SQLName getAnalyzerName()
-
setAnalyzerName
public void setAnalyzerName(SQLName analyzerName)
-
getIndexAnalyzerName
public SQLName getIndexAnalyzerName()
-
setIndexAnalyzerName
public void setIndexAnalyzerName(SQLName indexAnalyzerName)
-
getQueryAnalyzerName
public SQLName getQueryAnalyzerName()
-
setQueryAnalyzerName
public void setQueryAnalyzerName(SQLName queryAnalyzerName)
-
getWithDicName
public SQLName getWithDicName()
-
setWithDicName
public void setWithDicName(SQLName withDicName)
-
getPartitioning
public SQLPartitionBy getPartitioning()
-
setPartitioning
public void setPartitioning(SQLPartitionBy partitioning)
-
getCompatibleOptions
public List<SQLAssignItem> getCompatibleOptions()
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Specified by:
accept0in classSQLObjectImpl
-
cloneTo
public void cloneTo(SQLIndexDefinition definition)
-
getOption
public SQLExpr getOption(long hash64)
-
getDistanceMeasure
public String getDistanceMeasure()
-
getAlgorithm
public String getAlgorithm()
-
-