public abstract class DruidRel<T extends DruidRel>
extends org.apache.calcite.rel.AbstractRelNode
| Modifier | Constructor and Description |
|---|---|
protected |
DruidRel(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traitSet,
QueryMaker queryMaker) |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
asDruidConvention() |
abstract List<String> |
getDataSourceNames()
Get a list of names of datasources read by this DruidRel
|
abstract PartialDruidQuery |
getPartialDruidQuery()
Returns the PartialDruidQuery associated with this DruidRel, and which can be built on top of.
|
PlannerContext |
getPlannerContext() |
abstract int |
getQueryCount()
Return the number of Druid queries this rel involves, including sub-queries.
|
QueryMaker |
getQueryMaker() |
boolean |
isValidDruidQuery() |
abstract Sequence<Object[]> |
runQuery() |
abstract DruidQuery |
toDruidQuery(boolean finalizeAggregations)
Convert this DruidRel to a DruidQuery.
|
abstract DruidQuery |
toDruidQueryForExplaining()
Convert this DruidRel to a DruidQuery for purposes of explaining.
|
abstract T |
withPartialQuery(PartialDruidQuery newQueryBuilder) |
accept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, computeSelfCost, copy, deriveRowType, equals, estimateRowCount, explain, explainTerms, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, hashCode, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, replaceInput, sole, toStringprotected DruidRel(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traitSet,
QueryMaker queryMaker)
@Nullable public abstract PartialDruidQuery getPartialDruidQuery()
public abstract int getQueryCount()
public abstract T withPartialQuery(PartialDruidQuery newQueryBuilder)
public boolean isValidDruidQuery()
@Nullable public abstract DruidQuery toDruidQuery(boolean finalizeAggregations)
finalizeAggregations - true if this query should include explicit finalization for all of its
aggregators, where required. Useful for subqueries where Druid's native query layer
does not do this automatically.CannotBuildQueryExceptionpublic abstract DruidQuery toDruidQueryForExplaining()
CannotBuildQueryExceptionpublic QueryMaker getQueryMaker()
public PlannerContext getPlannerContext()
public abstract T asDruidConvention()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.