public class DruidJoinQueryRel extends DruidRel<DruidJoinQueryRel>
JoinDataSource.| Modifier and Type | Method and Description |
|---|---|
DruidJoinQueryRel |
asDruidConvention() |
static boolean |
computeRightRequiresSubquery(DruidRel<?> right) |
org.apache.calcite.plan.RelOptCost |
computeSelfCost(org.apache.calcite.plan.RelOptPlanner planner,
org.apache.calcite.rel.metadata.RelMetadataQuery mq) |
org.apache.calcite.rel.RelNode |
copy(org.apache.calcite.plan.RelTraitSet traitSet,
List<org.apache.calcite.rel.RelNode> inputs) |
static DruidJoinQueryRel |
create(org.apache.calcite.rel.core.Join joinRel,
org.apache.calcite.rel.core.Filter leftFilter,
PlannerContext plannerContext)
Create an instance from a Join that is based on two
DruidRel inputs. |
protected org.apache.calcite.rel.type.RelDataType |
deriveRowType() |
org.apache.calcite.rel.RelWriter |
explainTerms(org.apache.calcite.rel.RelWriter pw) |
List<org.apache.calcite.rex.RexNode> |
getChildExps() |
Set<String> |
getDataSourceNames()
Get the set of names of table datasources read by this DruidRel
|
List<org.apache.calcite.rel.RelNode> |
getInputs() |
PartialDruidQuery |
getPartialDruidQuery()
Returns the PartialDruidQuery associated with this DruidRel, and which can be built on top of.
|
static DruidRel<?> |
getSomeDruidChild(org.apache.calcite.rel.RelNode child) |
void |
replaceInput(int ordinalInParent,
org.apache.calcite.rel.RelNode p) |
static JoinType |
toDruidJoinType(org.apache.calcite.rel.core.JoinRelType calciteJoinType) |
DruidQuery |
toDruidQuery(boolean finalizeAggregations)
Convert this DruidRel to a DruidQuery.
|
DruidQuery |
toDruidQueryForExplaining()
Convert this DruidRel to a DruidQuery for purposes of explaining.
|
DruidJoinQueryRel |
withPartialQuery(PartialDruidQuery newQueryBuilder) |
getPlannerContext, isValidDruidQuery, runQueryaccept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, equals, estimateRowCount, explain, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, hashCode, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringpublic static DruidJoinQueryRel create(org.apache.calcite.rel.core.Join joinRel, org.apache.calcite.rel.core.Filter leftFilter, PlannerContext plannerContext)
DruidRel inputs.public PartialDruidQuery getPartialDruidQuery()
DruidRelgetPartialDruidQuery in class DruidRel<DruidJoinQueryRel>public DruidJoinQueryRel withPartialQuery(PartialDruidQuery newQueryBuilder)
withPartialQuery in class DruidRel<DruidJoinQueryRel>public DruidQuery toDruidQuery(boolean finalizeAggregations)
DruidReltoDruidQuery in class DruidRel<DruidJoinQueryRel>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.public DruidQuery toDruidQueryForExplaining()
DruidReltoDruidQueryForExplaining in class DruidRel<DruidJoinQueryRel>public DruidJoinQueryRel asDruidConvention()
asDruidConvention in class DruidRel<DruidJoinQueryRel>public List<org.apache.calcite.rel.RelNode> getInputs()
getInputs in interface org.apache.calcite.plan.RelOptNodegetInputs in interface org.apache.calcite.rel.RelNodegetInputs in class org.apache.calcite.rel.AbstractRelNodepublic void replaceInput(int ordinalInParent,
org.apache.calcite.rel.RelNode p)
replaceInput in interface org.apache.calcite.rel.RelNodereplaceInput in class org.apache.calcite.rel.AbstractRelNodepublic List<org.apache.calcite.rex.RexNode> getChildExps()
getChildExps in interface org.apache.calcite.rel.RelNodegetChildExps in class org.apache.calcite.rel.AbstractRelNodepublic org.apache.calcite.rel.RelNode copy(org.apache.calcite.plan.RelTraitSet traitSet,
List<org.apache.calcite.rel.RelNode> inputs)
copy in interface org.apache.calcite.rel.RelNodecopy in class org.apache.calcite.rel.AbstractRelNodepublic Set<String> getDataSourceNames()
DruidRelgetDataSourceNames in class DruidRel<DruidJoinQueryRel>public org.apache.calcite.rel.RelWriter explainTerms(org.apache.calcite.rel.RelWriter pw)
explainTerms in class org.apache.calcite.rel.AbstractRelNodeprotected org.apache.calcite.rel.type.RelDataType deriveRowType()
deriveRowType in class org.apache.calcite.rel.AbstractRelNodepublic org.apache.calcite.plan.RelOptCost computeSelfCost(org.apache.calcite.plan.RelOptPlanner planner,
org.apache.calcite.rel.metadata.RelMetadataQuery mq)
computeSelfCost in interface org.apache.calcite.rel.RelNodecomputeSelfCost in class org.apache.calcite.rel.AbstractRelNodepublic static JoinType toDruidJoinType(org.apache.calcite.rel.core.JoinRelType calciteJoinType)
public static boolean computeRightRequiresSubquery(DruidRel<?> right)
public static DruidRel<?> getSomeDruidChild(org.apache.calcite.rel.RelNode child)
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.