Class DrillCalciteWrapperUtility
java.lang.Object
org.apache.drill.exec.planner.sql.parser.DrillCalciteWrapperUtility
This utility contains the static functions to manipulate
DrillCalciteSqlWrapper
, DrillCalciteSqlOperatorWrapper
DrillCalciteSqlFunctionWrapper
and DrillCalciteSqlAggFunctionWrapper
.-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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.
-