Package org.apache.druid.sql.calcite.run
Class NativeQueryMaker
java.lang.Object
org.apache.druid.sql.calcite.run.NativeQueryMaker
- All Implemented Interfaces:
QueryMaker
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.druid.sql.calcite.run.QueryMaker
QueryMaker.FromDruidLogical -
Constructor Summary
ConstructorsConstructorDescriptionNativeQueryMaker(QueryLifecycleFactory queryLifecycleFactory, PlannerContext plannerContext, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, List<Map.Entry<Integer, String>> fieldMapping) -
Method Summary
Modifier and TypeMethodDescriptionrunQuery(DruidQuery druidQuery) Executes a given Druid query, which is expected to correspond to the SQL query that this QueryMaker was originally created for.
-
Constructor Details
-
NativeQueryMaker
public NativeQueryMaker(QueryLifecycleFactory queryLifecycleFactory, PlannerContext plannerContext, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, List<Map.Entry<Integer, String>> fieldMapping)
-
-
Method Details
-
runQuery
Description copied from interface:QueryMakerExecutes a given Druid query, which is expected to correspond to the SQL query that this QueryMaker was originally created for. The returned arrays match the row type given bySqlEngine.resultTypeForSelect(org.apache.calcite.rel.type.RelDataTypeFactory, org.apache.calcite.rel.type.RelDataType, java.util.Map<java.lang.String, java.lang.Object>)orSqlEngine.resultTypeForInsert(org.apache.calcite.rel.type.RelDataTypeFactory, org.apache.calcite.rel.type.RelDataType, java.util.Map<java.lang.String, java.lang.Object>), depending on the nature of the statement.- Specified by:
runQueryin interfaceQueryMaker
-