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

Method CaseExpr

fe/src/main/java/org/apache/impala/analysis/CaseExpr.java:83–99  ·  view source on GitHub ↗
(Expr caseExpr, List<CaseWhenClause> whenClauses, Expr elseExpr)

Source from the content-addressed store, hash-verified

81 private boolean hasElseExpr_;
82
83 public CaseExpr(Expr caseExpr, List<CaseWhenClause> whenClauses, Expr elseExpr) {
84 super();
85 if (caseExpr != null) {
86 children_.add(caseExpr);
87 hasCaseExpr_ = true;
88 }
89 for (CaseWhenClause whenClause: whenClauses) {
90 Preconditions.checkNotNull(whenClause.getWhenExpr());
91 children_.add(whenClause.getWhenExpr());
92 Preconditions.checkNotNull(whenClause.getThenExpr());
93 children_.add(whenClause.getThenExpr());
94 }
95 if (elseExpr != null) {
96 children_.add(elseExpr);
97 hasElseExpr_ = true;
98 }
99 }
100
101 /**
102 * Constructs an equivalent CaseExpr representation.

Callers

nothing calls this directly

Calls 10

cloneMethod · 0.95
getWhenExprMethod · 0.80
getThenExprMethod · 0.80
getChildrenMethod · 0.80
getChildMethod · 0.80
applyMethod · 0.65
addMethod · 0.45
isEmptyMethod · 0.45
sizeMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected