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

Method contains

fe/src/main/java/org/apache/impala/common/TreeNode.java:182–188  ·  view source on GitHub ↗

Return true if this node or any of its children satisfy 'predicate'.

(
      Predicate<? super C> predicate)

Source from the content-addressed store, hash-verified

180 * Return true if this node or any of its children satisfy 'predicate'.
181 */
182 @SuppressWarnings("unchecked")
183 public <C extends TreeNode<NodeType>> boolean contains(
184 Predicate<? super C> predicate) {
185 if (predicate.apply((C) this)) return true;
186 for (NodeType child: children_) if (child.contains(predicate)) return true;
187 return false;
188 }
189
190 /**
191 * Return true if this node or any of its children is an instance of class 'cl'.

Callers 15

verifyResultExprsMethod · 0.95
verifyAggSemanticsMethod · 0.95
hasAggregateMethod · 0.95
analyzeImplMethod · 0.95
analyzeImplMethod · 0.95
getAccessTypeMethod · 0.45
injectErrorIfNeededMethod · 0.45
testScanNodeFsSchemeMethod · 0.45
testChangeClusterSizeMethod · 0.45
validateTableIdsMethod · 0.45

Calls 1

applyMethod · 0.65

Tested by 15

testScanNodeFsSchemeMethod · 0.36
testChangeClusterSizeMethod · 0.36
validateTableIdsMethod · 0.36
testPlanMethod · 0.36
removeExplainHeaderMethod · 0.36
runPlannerTestFileMethod · 0.36
testTestCaseImportMethod · 0.36
getPlanMethod · 0.36