Class DruidSqlIngest
java.lang.Object
org.apache.calcite.sql.SqlNode
org.apache.calcite.sql.SqlCall
org.apache.calcite.sql.SqlInsert
org.apache.druid.sql.calcite.parser.DruidSqlIngest
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
DruidSqlInsert,DruidSqlReplace
public abstract class DruidSqlIngest
extends org.apache.calcite.sql.SqlInsert
Common base class to the two Druid "ingest" statements: INSERT and REPLACE.
Allows Planner code to work with these two statements generically where they
share common clauses.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.calcite.sql.SqlNodeListprotected final SqlGranularityLiteralstatic final StringFields inherited from class org.apache.calcite.sql.SqlInsert
OPERATORFields inherited from class org.apache.calcite.sql.SqlNode
EMPTY_ARRAY, pos -
Constructor Summary
ConstructorsConstructorDescriptionDruidSqlIngest(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlNodeList keywords, org.apache.calcite.sql.SqlNode targetTable, org.apache.calcite.sql.SqlNode source, org.apache.calcite.sql.SqlNodeList columnList, SqlGranularityLiteral partitionedBy, org.apache.calcite.sql.SqlNodeList clusteredBy, org.apache.calcite.sql.SqlIdentifier exportFileFormat) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.calcite.sql.SqlNodeListorg.apache.calcite.sql.SqlIdentifierList<org.apache.calcite.sql.SqlNode>Methods inherited from class org.apache.calcite.sql.SqlInsert
getKind, getModifierNode, getOperator, getSource, getTargetColumnList, getTargetTable, isUpsert, setOperand, setSource, unparse, validateMethods inherited from class org.apache.calcite.sql.SqlCall
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getMonotonicity, isCountStar, isExpanded, operand, operandCountMethods inherited from class org.apache.calcite.sql.SqlNode
clone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toList, toList, toSqlString, toSqlString, toSqlString, toString, unparseWithParentheses, validateExpr
-
Field Details
-
SQL_EXPORT_FILE_FORMAT
- See Also:
-
partitionedBy
-
clusteredBy
@Nullable protected final org.apache.calcite.sql.SqlNodeList clusteredBy
-
-
Constructor Details
-
DruidSqlIngest
public DruidSqlIngest(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlNodeList keywords, org.apache.calcite.sql.SqlNode targetTable, org.apache.calcite.sql.SqlNode source, org.apache.calcite.sql.SqlNodeList columnList, @Nullable SqlGranularityLiteral partitionedBy, @Nullable org.apache.calcite.sql.SqlNodeList clusteredBy, @Nullable org.apache.calcite.sql.SqlIdentifier exportFileFormat)
-
-
Method Details
-
getPartitionedBy
-
getClusteredBy
@Nullable public org.apache.calcite.sql.SqlNodeList getClusteredBy() -
getExportFileFormat
@Nullable public org.apache.calcite.sql.SqlIdentifier getExportFileFormat() -
getOperandList
- Overrides:
getOperandListin classorg.apache.calcite.sql.SqlInsert
-