Package org.apache.flink.sql.parser.ddl
Class SqlDistribution
- java.lang.Object
-
- org.apache.calcite.sql.SqlNode
-
- org.apache.calcite.sql.SqlCall
-
- org.apache.flink.sql.parser.ddl.SqlDistribution
-
- All Implemented Interfaces:
Cloneable
public class SqlDistribution extends org.apache.calcite.sql.SqlCall
Distribution statement in CREATE TABLE DDL, e.g.DISTRIBUTED BY HASH(column1, column2) INTO BUCKETS 10
.
-
-
Constructor Summary
Constructors Constructor Description SqlDistribution(org.apache.calcite.sql.parser.SqlParserPos pos, String distributionKind, org.apache.calcite.sql.SqlNodeList bucketColumns, org.apache.calcite.sql.SqlNumericLiteral bucketCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.calcite.sql.SqlNodeList
getBucketColumns()
org.apache.calcite.sql.SqlNumericLiteral
getBucketCount()
Optional<String>
getDistributionKind()
List<org.apache.calcite.sql.SqlNode>
getOperandList()
org.apache.calcite.sql.SqlOperator
getOperator()
void
unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
void
unparseAlter(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
-
Methods inherited from class org.apache.calcite.sql.SqlCall
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, validate
-
-
-
-
Constructor Detail
-
SqlDistribution
public SqlDistribution(org.apache.calcite.sql.parser.SqlParserPos pos, @Nullable String distributionKind, @Nullable org.apache.calcite.sql.SqlNodeList bucketColumns, @Nullable org.apache.calcite.sql.SqlNumericLiteral bucketCount)
-
-
Method Detail
-
getOperator
public org.apache.calcite.sql.SqlOperator getOperator()
- Specified by:
getOperator
in classorg.apache.calcite.sql.SqlCall
-
getOperandList
public List<org.apache.calcite.sql.SqlNode> getOperandList()
- Specified by:
getOperandList
in classorg.apache.calcite.sql.SqlCall
-
unparse
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
- Overrides:
unparse
in classorg.apache.calcite.sql.SqlCall
-
unparseAlter
public void unparseAlter(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
-
getBucketCount
public org.apache.calcite.sql.SqlNumericLiteral getBucketCount()
-
getBucketColumns
public org.apache.calcite.sql.SqlNodeList getBucketColumns()
-
-