public class NativeQueryMaker extends Object implements QueryMaker
| Constructor and Description |
|---|
NativeQueryMaker(QueryLifecycleFactory queryLifecycleFactory,
PlannerContext plannerContext,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
List<org.apache.calcite.util.Pair<Integer,String>> fieldMapping) |
| Modifier and Type | Method and Description |
|---|---|
Sequence<Object[]> |
runQuery(DruidQuery druidQuery)
Executes a given Druid query, which is expected to correspond to the SQL query that this QueryMaker was originally
created for.
|
public NativeQueryMaker(QueryLifecycleFactory queryLifecycleFactory, PlannerContext plannerContext, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, List<org.apache.calcite.util.Pair<Integer,String>> fieldMapping)
public Sequence<Object[]> runQuery(DruidQuery druidQuery)
QueryMakerSqlEngine.resultTypeForSelect(org.apache.calcite.rel.type.RelDataTypeFactory, org.apache.calcite.rel.type.RelDataType) or
SqlEngine.resultTypeForInsert(org.apache.calcite.rel.type.RelDataTypeFactory, org.apache.calcite.rel.type.RelDataType), depending on the nature of the statement.runQuery in interface QueryMakerCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.