Class MySqlCreateTableStatement
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLStatementImpl
com.alibaba.druid.sql.ast.statement.SQLCreateTableStatement
com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlCreateTableStatement
- All Implemented Interfaces:
SQLDbTypedObject
,SQLObject
,SQLStatement
,SQLCreateStatement
,SQLDDLStatement
,MySqlObject
,MySqlStatement
-
Nested Class Summary
Nested classes/interfaces inherited from class com.alibaba.druid.sql.ast.statement.SQLCreateTableStatement
SQLCreateTableStatement.Type
-
Field Summary
Modifier and TypeFieldDescriptionprotected SQLName
protected SQLExpr
protected SQLExpr
protected SQLName
protected MySqlExtPartition
protected boolean
protected SQLName
protected SQLExpr
protected SQLExpr
protected Boolean
Fields inherited from class com.alibaba.druid.sql.ast.statement.SQLCreateTableStatement
buckets, clusteredBy, clusteringType, comment, compress, dimension, engine, external, ifNotExists, ignore, inherits, like, localPartitioning, location, logging, onCommitDeleteRows, onCommitPreserveRows, partitionColumns, partitioning, replace, rowFormat, select, shards, single, sortedBy, storedAs, tableElementList, tableOptions, tableSource, tablespace, tblProperties, type
Fields inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
afterSemi, dbType, headHints
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept0
(AdsOutputVisitor visitor) void
accept0
(MySqlASTVisitor visitor) protected void
accept0
(SQLASTVisitor visitor) protected boolean
alterApply
(SQLAlterTableItem item) boolean
apply
(SQLAlterCharacter item) boolean
apply
(SQLAlterTableAddIndex item) boolean
boolean
boolean
boolean
apply
(MySqlAlterTableOption item) boolean
boolean
clone()
void
getHints()
getQuery()
Deprecated.getWith()
boolean
void
setArchiveBy
(SQLName archiveBy) void
setBroadCast
(boolean broadCast) void
void
void
setDistributeByType
(SQLName distributeByType) void
void
void
setHints
(List<SQLCommentHint> hints) void
setOptionHints
(List<SQLCommentHint> optionHints) void
void
Deprecated.void
setStoredBy
(SQLName storedBy) void
setTableGroup
(SQLName tableGroup) void
setTableGroup
(String tableGroup) void
void
void
void
setWithData
(Boolean withData) void
showCoumns
(Appendable out) void
simplify()
Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLCreateTableStatement
acceptChild, addBodyBeforeComment, addClusteredByItem, addColumn, addColumn, addOption, addPartitionColumn, addSortedByItem, addTblProperty, apply, apply, apply, cloneTo, columnIndexOf, computeName, containsDuplicateColumnNames, containsDuplicateColumnNames, findColumn, findColumn, findForeignKey, findIndex, findPrimaryKey, findUnique, forEachColumn, foreignKeyToAlterTable, getBodyBeforeCommentsDirect, getBuckets, getCatalog, getChildren, getClusteredBy, getClusteringType, getColumn, getColumnComments, getColumnDefinitions, getColumnNames, getComment, getCompress, getInherits, getLike, getLocalPartitioning, getLocation, getLogging, getName, getOption, getOptionOrTblPropertyValue, getOptionValue, getPartitionColumns, getPartitioning, getPrimaryKeyNames, getRowFormat, getSchema, getSelect, getShards, getSortedBy, getStoredAs, getTableElementList, getTableName, getTableOptions, getTableSource, getTablespace, getTblProperties, getTblProperty, getTblPropertyValue, getType, hasBodyBeforeComment, hashForeignKey, isDimension, isExternal, isIfNotExists, isIgnore, isMUL, isOnCommitPreserveRows, isOnlyPrimaryKey, isPrimaryColumn, isPrimaryColumn, isReferenced, isReferenced, isReplace, isSingle, isUNI, renameColumn, setBuckets, setClusteringType, setComment, setCompress, setDimension, setExternal, setIfNotExiists, setIgnore, setInherits, setLike, setLike, setLocalPartitioning, setLocation, setLogging, setName, setName, setOnCommitPreserveRows, setPartitioning, setReplace, setRowFormat, setSchema, setSelect, setShards, setSingle, setStoredAs, setTableName, setTableSource, setTablespace, setType, sort, toString
Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseString, toParameterizedString, toString, toUnformattedString
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
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
Methods inherited from interface com.alibaba.druid.sql.ast.SQLStatement
getChildren, getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString
-
Field Details
-
dbPartitionBy
-
dbPartitions
-
tablePartitionBy
-
tablePartitions
-
exPartition
-
storedBy
-
distributeByType
-
distributeBy
-
isBroadCast
protected boolean isBroadCast -
with
-
archiveBy
-
withData
-
-
Constructor Details
-
MySqlCreateTableStatement
public MySqlCreateTableStatement()
-
-
Method Details
-
getHints
-
setHints
-
getQuery
Deprecated. -
setQuery
Deprecated. -
accept0
- Overrides:
accept0
in classSQLCreateTableStatement
-
accept0
-
accept0
- Specified by:
accept0
in interfaceMySqlObject
-
getOptionHints
-
setOptionHints
-
getTableGroup
-
setTableGroup
-
setTableGroup
-
simplify
public void simplify()- Overrides:
simplify
in classSQLCreateTableStatement
-
showCoumns
- Throws:
IOException
-
getMysqlKeys
-
getMysqlIndexes
-
apply
-
alterApply
- Overrides:
alterApply
in classSQLCreateTableStatement
-
apply
- Overrides:
apply
in classSQLCreateTableStatement
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
cloneTo
-
clone
- Specified by:
clone
in interfaceSQLObject
- Specified by:
clone
in interfaceSQLStatement
- Overrides:
clone
in classSQLCreateTableStatement
-
getDbPartitionBy
-
setDbPartitionBy
-
getTablePartitionBy
-
setTablePartitionBy
-
getDistributeByType
-
setDistributeByType
-
getDistributeBy
-
getTbpartitions
-
getTablePartitions
-
setTablePartitions
-
getDbpartitions
-
setDbPartitions
-
getExtPartition
-
setExPartition
-
getDbPartitions
-
getStoredBy
-
setStoredBy
-
getWith
-
isBroadCast
public boolean isBroadCast() -
setBroadCast
public void setBroadCast(boolean broadCast) -
getArchiveBy
-
setArchiveBy
-
getWithData
-
setWithData
-
getEngine
- Overrides:
getEngine
in classSQLCreateTableStatement
-
setEngine
- Overrides:
setEngine
in classSQLCreateTableStatement
-
setPageChecksum
-
setTransactional
-