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,
PlannerContext plannerContext) |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
asDruidConvention() |
abstract Set<String> |
getDataSourceNames()
Get the set of names of table 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() |
boolean |
isValidDruidQuery() |
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,
PlannerContext plannerContext)
@Nullable public abstract PartialDruidQuery getPartialDruidQuery()
public abstract T withPartialQuery(PartialDruidQuery newQueryBuilder)
public boolean isValidDruidQuery()
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 PlannerContext getPlannerContext()
public abstract T asDruidConvention()
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.