Package org.apache.druid.sql.calcite.run
Interface QueryMaker
- All Known Implementing Classes:
NativeQueryMaker
public interface QueryMaker
Interface for executing Druid queries. Each one is created by a
SqlEngine and is tied to a
specific SQL query.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceMarks that theQueryMakersupports executingDruidLogicalNode-s. -
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.
-
Method Details
-
runQuery
Executes 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.
-