Class TDDLSqlSelect

java.lang.Object
org.apache.calcite.sql.SqlNode
org.apache.calcite.sql.SqlCall
org.apache.calcite.sql.SqlSelect
com.alibaba.druid.support.calcite.TDDLSqlSelect
All Implemented Interfaces:
Cloneable

public class TDDLSqlSelect extends org.apache.calcite.sql.SqlSelect
扩展calcite,支持select 中的hints
Author:
lijun.cailj 2017/11/29
  • Field Summary

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

    FROM_OPERAND, HAVING_OPERAND, WHERE_OPERAND

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

    EMPTY_ARRAY, pos
  • Constructor Summary

    Constructors
    Constructor
    Description
    TDDLSqlSelect(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlNodeList keywordList, org.apache.calcite.sql.SqlNodeList selectList, org.apache.calcite.sql.SqlNode from, org.apache.calcite.sql.SqlNode where, org.apache.calcite.sql.SqlNodeList groupBy, org.apache.calcite.sql.SqlNode having, org.apache.calcite.sql.SqlNodeList windowDecls, org.apache.calcite.sql.SqlNodeList orderBy, org.apache.calcite.sql.SqlNode offset, org.apache.calcite.sql.SqlNode fetch, org.apache.calcite.sql.SqlNodeList hints, org.apache.calcite.sql.SqlNodeList headHints)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.calcite.sql.SqlNodeList
     
    org.apache.calcite.sql.SqlNodeList
     
    void
    setHeadHints(org.apache.calcite.sql.SqlNodeList headHints)
     
    void
    setHints(org.apache.calcite.sql.SqlNodeList hints)
     

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

    getFetch, getFrom, getGroup, getHaving, getKind, getModifierNode, getOffset, getOperandList, getOperator, getOrderList, getSelectList, getWhere, getWindowList, hasHints, hasOrderBy, hasWhere, isDistinct, isKeywordPresent, setFetch, setFrom, setGroupBy, setHaving, setOffset, setOperand, setOrderBy, setSelectList, setWhere, 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
  • Constructor Details

    • TDDLSqlSelect

      public TDDLSqlSelect(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlNodeList keywordList, org.apache.calcite.sql.SqlNodeList selectList, org.apache.calcite.sql.SqlNode from, org.apache.calcite.sql.SqlNode where, org.apache.calcite.sql.SqlNodeList groupBy, org.apache.calcite.sql.SqlNode having, org.apache.calcite.sql.SqlNodeList windowDecls, org.apache.calcite.sql.SqlNodeList orderBy, org.apache.calcite.sql.SqlNode offset, org.apache.calcite.sql.SqlNode fetch, org.apache.calcite.sql.SqlNodeList hints, org.apache.calcite.sql.SqlNodeList headHints)
  • Method Details

    • getHints

      public org.apache.calcite.sql.SqlNodeList getHints()
      Overrides:
      getHints in class org.apache.calcite.sql.SqlSelect
    • setHints

      public void setHints(org.apache.calcite.sql.SqlNodeList hints)
      Overrides:
      setHints in class org.apache.calcite.sql.SqlSelect
    • getHeadHints

      public org.apache.calcite.sql.SqlNodeList getHeadHints()
    • setHeadHints

      public void setHeadHints(org.apache.calcite.sql.SqlNodeList headHints)