Class GaussDbDistributeBy
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.dialect.gaussdb.ast.GaussDbObjectImpl
-
- com.alibaba.druid.sql.dialect.gaussdb.ast.GaussDbDistributeBy
-
- All Implemented Interfaces:
SQLObject,GaussDbObject
public class GaussDbDistributeBy extends GaussDbObjectImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected List<SQLExpr>columnsprotected List<SQLPartition>distributionsprotected SQLIntegerExprlifeCycleprotected List<SQLName>storeInprotected SQLSubPartitionBysubPartitionByprotected SQLNametype-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description GaussDbDistributeBy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept0(SQLASTVisitor v)voidaddColumn(SQLExpr column)voidaddDistribution(SQLPartitionSingle distribution)List<SQLExpr>getColumns()List<SQLPartition>getDistributions()SQLIntegerExprgetLifeCycle()List<SQLName>getStoreIn()SQLSubPartitionBygetSubPartitionBy()SQLNamegetType()booleanisDistributionColumn(long columnNameHashCode64)voidsetLifeCycle(SQLIntegerExpr x)voidsetSubPartitionBy(SQLSubPartitionBy subPartitionBy)voidsetType(SQLName type)-
Methods inherited from class com.alibaba.druid.sql.dialect.gaussdb.ast.GaussDbObjectImpl
accept0
-
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
-
subPartitionBy
protected SQLSubPartitionBy subPartitionBy
-
distributions
protected List<SQLPartition> distributions
-
type
protected SQLName type
-
lifeCycle
protected SQLIntegerExpr lifeCycle
-
-
Method Detail
-
getDistributions
public List<SQLPartition> getDistributions()
-
setType
public void setType(SQLName type)
-
getType
public SQLName getType()
-
addDistribution
public void addDistribution(SQLPartitionSingle distribution)
-
getSubPartitionBy
public SQLSubPartitionBy getSubPartitionBy()
-
setSubPartitionBy
public void setSubPartitionBy(SQLSubPartitionBy subPartitionBy)
-
addColumn
public void addColumn(SQLExpr column)
-
isDistributionColumn
public boolean isDistributionColumn(long columnNameHashCode64)
-
getLifeCycle
public SQLIntegerExpr getLifeCycle()
-
setLifeCycle
public void setLifeCycle(SQLIntegerExpr x)
-
accept0
public void accept0(SQLASTVisitor v)
- Specified by:
accept0in interfaceGaussDbObject- Overrides:
accept0in classGaussDbObjectImpl
-
-