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

Method getRoots

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

Get a list of all nodes in the graph that are roots. A root is defined to be a node that has no input.

()

Source from the content-addressed store, hash-verified

99 * be a node that has no input.
100 */
101 public List<E> getRoots() {
102 if (mRoots.size() == 0 && mOps.size() > 0) {
103 for (E op : mOps.keySet()) {
104 if (mToEdges.get(op) == null) {
105 mRoots.add(op);
106 }
107 }
108 }
109 return mRoots;
110 }
111
112 /**
113 * Get a list of all nodes in the graph that are leaves. A leaf is defined to

Callers 15

addAsRootMethod · 0.95
testParallelismMethod · 0.80
checkPhysicalPlanMethod · 0.80
testOptimizerFiredMethod · 0.80
testOptimizerNotFiredMethod · 0.80
testOrderByUDFSetMethod · 0.80
testSim1Method · 0.80
testSortUDF1Method · 0.80
testDistinct1Method · 0.80
testMRCompilerErrMethod · 0.80

Calls 4

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

Tested by 15

testParallelismMethod · 0.64
checkPhysicalPlanMethod · 0.64
testOptimizerFiredMethod · 0.64
testOptimizerNotFiredMethod · 0.64
testOrderByUDFSetMethod · 0.64
testSim1Method · 0.64
testSortUDF1Method · 0.64
testDistinct1Method · 0.64
testMRCompilerErrMethod · 0.64