Class SqlGranularityLiteral

java.lang.Object
org.apache.calcite.sql.SqlNode
org.apache.calcite.sql.SqlLiteral
org.apache.druid.sql.calcite.parser.SqlGranularityLiteral
All Implemented Interfaces:
Cloneable

public class SqlGranularityLiteral extends org.apache.calcite.sql.SqlLiteral
Extends the SqlLiteral to hold parameters for the PARTITIONED BY clause.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.calcite.sql.SqlLiteral

    org.apache.calcite.sql.SqlLiteral.SqlSymbol
  • Field Summary

    Fields inherited from class org.apache.calcite.sql.SqlLiteral

    value

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

    EMPTY_ARRAY, pos
  • Constructor Summary

    Constructors
    Constructor
    Description
    SqlGranularityLiteral(Granularity granularity, String unparseString, org.apache.calcite.sql.parser.SqlParserPos pos)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    clone(org.apache.calcite.sql.parser.SqlParserPos pos)
     
     
    void
    unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
     

    Methods inherited from class org.apache.calcite.sql.SqlLiteral

    accept, bigDecimalValue, booleanValue, createApproxNumeric, createBinaryString, createBinaryString, createBoolean, createCharString, createCharString, createDate, createDate, createExactNumeric, createInterval, createNegative, createNull, createSample, createSqlType, createSymbol, createTime, createTime, createTime, createTimestamp, createTimestamp, createTimestamp, createTimestamp, createUnknown, createUnknown, equals, equalsDeep, getKind, getMonotonicity, getStringValue, getTypeName, getValue, getValueAs, hashCode, intValue, longValue, sampleValue, signum, stringValue, symbolValue, symbolValue_, toValue, unchain, unescapeUnicode, validate, value, valueMatchesType

    Methods inherited from class org.apache.calcite.sql.SqlNode

    clone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, findValidOptions, getParserPosition, isA, toList, toList, toSqlString, toSqlString, toSqlString, toString, unparseWithParentheses, validateExpr

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SqlGranularityLiteral

      public SqlGranularityLiteral(@Nonnull Granularity granularity, @Nonnull String unparseString, org.apache.calcite.sql.parser.SqlParserPos pos)
  • Method Details

    • clone

      public SqlGranularityLiteral clone(org.apache.calcite.sql.parser.SqlParserPos pos)
      Overrides:
      clone in class org.apache.calcite.sql.SqlLiteral
    • getGranularity

      @Nonnull public Granularity getGranularity()
    • unparse

      public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
      Overrides:
      unparse in class org.apache.calcite.sql.SqlLiteral