MCPcopy Create free account
hub / github.com/apache/pig / getLeaves

Method getLeaves

src/org/apache/pig/impl/plan/OperatorPlan.java:116–125  ·  view source on GitHub ↗

Get a list of all nodes in the graph that are leaves. A leaf is defined to be a node that has no output.

()

Source from the content-addressed store, hash-verified

114 * be a node that has no output.
115 */
116 public List<E> getLeaves() {
117 if (mLeaves.size() == 0 && mOps.size() > 0) {
118 for (E op : mOps.keySet()) {
119 if (mFromEdges.get(op) == null) {
120 mLeaves.add(op);
121 }
122 }
123 }
124 return mLeaves;
125 }
126
127 /**
128 * Given an operator, find its OperatorKey.

Callers 15

addAsLeafMethod · 0.95
isSingleLeafPlanMethod · 0.95
checkPlanMethod · 0.45
testCompilationMethod · 0.45
checkPhysicalPlanMethod · 0.45
testMRPlanMethod · 0.45
testStoreAliasMethod · 0.45
testRun1Method · 0.45
testRun2Method · 0.45
testSim1Method · 0.45

Calls 4

sizeMethod · 0.65
getMethod · 0.65
addMethod · 0.65
keySetMethod · 0.45

Tested by 15

checkPlanMethod · 0.36
testCompilationMethod · 0.36
checkPhysicalPlanMethod · 0.36
testMRPlanMethod · 0.36
testStoreAliasMethod · 0.36
testRun1Method · 0.36
testRun2Method · 0.36
testSim1Method · 0.36
testSim3Method · 0.36
testSim4Method · 0.36