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

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.calcite.sql.SqlNodeList
     
    protected final SqlGranularityLiteral
     
    static final String
     

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

    OPERATOR

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

    EMPTY_ARRAY, pos
  • Constructor Summary

    Constructors
    Constructor
    Description
    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, SqlGranularityLiteral partitionedBy, org.apache.calcite.sql.SqlNodeList clusteredBy, org.apache.calcite.sql.SqlIdentifier exportFileFormat)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.calcite.sql.SqlNodeList
     
    org.apache.calcite.sql.SqlIdentifier
     
    List<org.apache.calcite.sql.SqlNode>
     
     

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

    getKind, getModifierNode, getOperator, getSource, getTargetColumnList, getTargetTable, isUpsert, setOperand, setSource, unparse, validate

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

    accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getMonotonicity, isCountStar, isExpanded, operand, operandCount

    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • SQL_EXPORT_FILE_FORMAT

      public static final String SQL_EXPORT_FILE_FORMAT
      See Also:
    • partitionedBy

      @Nullable protected final SqlGranularityLiteral 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

      @Nullable public SqlGranularityLiteral getPartitionedBy()
    • getClusteredBy

      @Nullable public org.apache.calcite.sql.SqlNodeList getClusteredBy()
    • getExportFileFormat

      @Nullable public org.apache.calcite.sql.SqlIdentifier getExportFileFormat()
    • getOperandList

      public List<org.apache.calcite.sql.SqlNode> getOperandList()
      Overrides:
      getOperandList in class org.apache.calcite.sql.SqlInsert