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
valueFields inherited from class org.apache.calcite.sql.SqlNode
EMPTY_ARRAY, pos -
Constructor Summary
ConstructorsConstructorDescriptionSqlGranularityLiteral(Granularity granularity, String unparseString, org.apache.calcite.sql.parser.SqlParserPos pos) -
Method Summary
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, valueMatchesTypeMethods 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
-
Constructor Details
-
SqlGranularityLiteral
public SqlGranularityLiteral(@Nonnull Granularity granularity, @Nonnull String unparseString, org.apache.calcite.sql.parser.SqlParserPos pos)
-
-
Method Details
-
clone
- Overrides:
clonein classorg.apache.calcite.sql.SqlLiteral
-
getGranularity
-
unparse
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec) - Overrides:
unparsein classorg.apache.calcite.sql.SqlLiteral
-