MCPcopy Create free account
hub / github.com/apache/impala / init

Method init

fe/src/main/java/org/apache/impala/planner/UnpivotNode.java:68–92  ·  view source on GitHub ↗
(Analyzer analyzer)

Source from the content-addressed store, hash-verified

66 }
67
68 @Override
69 public void init(Analyzer analyzer) {
70 for (SlotDescriptor slot : unpivotTableRef_.getDesc().getMaterializedSlots()) {
71 Expr e = unpivotTableRef_.getSourceExprMap().get(slot.getId());
72 if (e == null) {
73 sourceExprs_.add(null);
74 } else {
75 sourceExprs_.add(
76 e.substitute(getChild(0).getOutputSmap(), analyzer, true));
77 }
78 }
79 if (unpivotTableRef_.getUnpivotExprMap() != null) {
80 for (Map.Entry<Expr, LiteralExpr> e :
81 unpivotTableRef_.getUnpivotExprMap().entrySet()) {
82 Expr result = e.getKey().substitute(getChild(0).getOutputSmap(), analyzer, true);
83 dataExprs_.add(result);
84 headerExprs_.add(e.getValue());
85 }
86 }
87
88 conjuncts_ = orderConjunctsByCost(conjuncts_);
89 computeMemLayout(analyzer);
90 createDefaultSmap(analyzer);
91 computeStats(analyzer);
92 }
93
94 @Override
95 protected void toThrift(TPlanNode msg) {

Callers

nothing calls this directly

Calls 15

substituteMethod · 0.95
computeStatsMethod · 0.95
getSourceExprMapMethod · 0.80
getChildMethod · 0.80
getUnpivotExprMapMethod · 0.80
orderConjunctsByCostMethod · 0.80
createDefaultSmapMethod · 0.80
getMethod · 0.65
getIdMethod · 0.65
getMaterializedSlotsMethod · 0.45
getDescMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected