Class DruidOperatorTable
java.lang.Object
org.apache.druid.sql.calcite.planner.DruidOperatorTable
- All Implemented Interfaces:
org.apache.calcite.sql.SqlOperatorTable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDruidOperatorTable(Set<SqlAggregator> aggregators, Set<SqlOperatorConversion> operatorConversions) -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.calcite.sql.SqlOperator>static booleanisFunctionSyntax(org.apache.calcite.sql.SqlSyntax syntax) Checks if a given SqlSyntax value represents a valid function syntax.lookupAggregator(org.apache.calcite.sql.SqlAggFunction aggFunction) lookupOperatorConversion(org.apache.calcite.sql.SqlOperator operator) voidlookupOperatorOverloads(org.apache.calcite.sql.SqlIdentifier opName, org.apache.calcite.sql.SqlFunctionCategory category, org.apache.calcite.sql.SqlSyntax syntax, List<org.apache.calcite.sql.SqlOperator> operatorList, org.apache.calcite.sql.validate.SqlNameMatcher nameMatcher)
-
Field Details
-
ROUND_OPERATOR_CONVERSION
-
-
Constructor Details
-
DruidOperatorTable
@Inject public DruidOperatorTable(Set<SqlAggregator> aggregators, Set<SqlOperatorConversion> operatorConversions)
-
-
Method Details
-
lookupAggregator
-
lookupOperatorConversion
@Nullable public SqlOperatorConversion lookupOperatorConversion(org.apache.calcite.sql.SqlOperator operator) -
lookupOperatorOverloads
public void lookupOperatorOverloads(org.apache.calcite.sql.SqlIdentifier opName, org.apache.calcite.sql.SqlFunctionCategory category, org.apache.calcite.sql.SqlSyntax syntax, List<org.apache.calcite.sql.SqlOperator> operatorList, org.apache.calcite.sql.validate.SqlNameMatcher nameMatcher) - Specified by:
lookupOperatorOverloadsin interfaceorg.apache.calcite.sql.SqlOperatorTable
-
getOperatorList
- Specified by:
getOperatorListin interfaceorg.apache.calcite.sql.SqlOperatorTable
-
isFunctionSyntax
public static boolean isFunctionSyntax(org.apache.calcite.sql.SqlSyntax syntax) Checks if a given SqlSyntax value represents a valid function syntax. Treats anything other than prefix/suffix/binary syntax as function syntax.- Parameters:
syntax- The SqlSyntax value to be checked.- Returns:
trueif the syntax is valid for a function,falseotherwise.
-