public class DruidSqlReplace
extends org.apache.calcite.sql.SqlInsert
SqlInsert so that this SqlNode can be used in
SqlToRelConverter for getting converted into RelNode, and further processing| Modifier and Type | Field and Description |
|---|---|
static org.apache.calcite.sql.SqlOperator |
OPERATOR |
static String |
SQL_REPLACE_TIME_CHUNKS |
| Constructor and Description |
|---|
DruidSqlReplace(org.apache.calcite.sql.SqlInsert insertNode,
Granularity partitionedBy,
String partitionedByStringForUnparse,
org.apache.calcite.sql.SqlNodeList clusteredBy,
org.apache.calcite.sql.SqlNode replaceTimeQuery)
While partitionedBy and partitionedByStringForUnparse can be null as arguments to the constructor, this is
disallowed (semantically) and the constructor performs checks to ensure that.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.sql.SqlNodeList |
getClusteredBy() |
org.apache.calcite.sql.SqlOperator |
getOperator() |
Granularity |
getPartitionedBy() |
org.apache.calcite.sql.SqlNode |
getReplaceTimeQuery() |
void |
unparse(org.apache.calcite.sql.SqlWriter writer,
int leftPrec,
int rightPrec) |
getKind, getModifierNode, getOperandList, getSource, getTargetColumnList, getTargetTable, isUpsert, setOperand, setSource, validateaccept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getMonotonicity, isCountStar, isExpanded, operand, operandCountpublic static final String SQL_REPLACE_TIME_CHUNKS
public static final org.apache.calcite.sql.SqlOperator OPERATOR
public DruidSqlReplace(@Nonnull org.apache.calcite.sql.SqlInsert insertNode, @Nullable Granularity partitionedBy, @Nullable String partitionedByStringForUnparse, @Nullable org.apache.calcite.sql.SqlNodeList clusteredBy, @Nullable org.apache.calcite.sql.SqlNode replaceTimeQuery) throws ParseException
ParseExceptionpublic org.apache.calcite.sql.SqlNode getReplaceTimeQuery()
public Granularity getPartitionedBy()
@Nullable public org.apache.calcite.sql.SqlNodeList getClusteredBy()
@Nonnull public org.apache.calcite.sql.SqlOperator getOperator()
getOperator in class org.apache.calcite.sql.SqlInsertpublic void unparse(org.apache.calcite.sql.SqlWriter writer,
int leftPrec,
int rightPrec)
unparse in class org.apache.calcite.sql.SqlInsertCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.