Class DrillCalciteWrapperUtility

java.lang.Object
org.apache.drill.exec.planner.sql.parser.DrillCalciteWrapperUtility

public class DrillCalciteWrapperUtility extends Object
This utility contains the static functions to manipulate DrillCalciteSqlWrapper, DrillCalciteSqlOperatorWrapper DrillCalciteSqlFunctionWrapper and DrillCalciteSqlAggFunctionWrapper.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.calcite.sql.SqlAggFunction
    extractSqlOperatorFromWrapper(org.apache.calcite.sql.SqlAggFunction sqlAggFunction)
    This static method will extract the SqlAggFunction inside the given SqlAggFunction if the given SqlFunction is wrapped in DrillCalciteSqlAggFunctionWrapper and will just return the given SqlAggFunction if it is not wrapped.
    static org.apache.calcite.sql.SqlFunction
    extractSqlOperatorFromWrapper(org.apache.calcite.sql.SqlFunction sqlFunction)
    This static method will extract the SqlFunction inside the given SqlFunction if the given SqlFunction is wrapped in DrillCalciteSqlFunctionWrapper and will just return the given SqlFunction if it is not wrapped.
    static org.apache.calcite.sql.SqlOperator
    extractSqlOperatorFromWrapper(org.apache.calcite.sql.SqlOperator sqlOperator)
    This static method will extract the SqlOperator inside the given SqlOperator if the given SqlOperator is wrapped in DrillCalciteSqlWrapper and will just return the given SqlOperator if it is not wrapped.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • extractSqlOperatorFromWrapper

      public static org.apache.calcite.sql.SqlOperator extractSqlOperatorFromWrapper(org.apache.calcite.sql.SqlOperator sqlOperator)
      This static method will extract the SqlOperator inside the given SqlOperator if the given SqlOperator is wrapped in DrillCalciteSqlWrapper and will just return the given SqlOperator if it is not wrapped.
    • extractSqlOperatorFromWrapper

      public static org.apache.calcite.sql.SqlFunction extractSqlOperatorFromWrapper(org.apache.calcite.sql.SqlFunction sqlFunction)
      This static method will extract the SqlFunction inside the given SqlFunction if the given SqlFunction is wrapped in DrillCalciteSqlFunctionWrapper and will just return the given SqlFunction if it is not wrapped.
    • extractSqlOperatorFromWrapper

      public static org.apache.calcite.sql.SqlAggFunction extractSqlOperatorFromWrapper(org.apache.calcite.sql.SqlAggFunction sqlAggFunction)
      This static method will extract the SqlAggFunction inside the given SqlAggFunction if the given SqlFunction is wrapped in DrillCalciteSqlAggFunctionWrapper and will just return the given SqlAggFunction if it is not wrapped.