Class 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.
    • Field Summary

      • Fields inherited from class org.apache.calcite.sql.SqlNode

        EMPTY_ARRAY, pos
    • 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
      • Methods inherited from class org.apache.calcite.sql.SqlNode

        clone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toList, toList, toSqlString, toSqlString, toSqlString, toString, unparseWithParentheses, validateExpr
    • 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 class org.apache.calcite.sql.SqlCall
      • getOperandList

        public List<org.apache.calcite.sql.SqlNode> getOperandList()
        Specified by:
        getOperandList in class org.apache.calcite.sql.SqlCall
      • unparse

        public void unparse​(org.apache.calcite.sql.SqlWriter writer,
                            int leftPrec,
                            int rightPrec)
        Overrides:
        unparse in class org.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()