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

Method getLogicalRelationalOperators

src/org/apache/pig/newplan/logical/Util.java:195–200  ·  view source on GitHub ↗

Returns a LinkedList of operators contained within the physical plan which implement the supplied class, in dependency order. Returns an empty LinkedList of no such operators exist. @param plan @param opClass @return a LinkedList of operators contained within the plan which implement the sup

(LogicalPlan plan,
            Class<C> opClass)

Source from the content-addressed store, hash-verified

193 * @throws FrontendException
194 */
195 public static <C extends LogicalRelationalOperator> LinkedList<C> getLogicalRelationalOperators(LogicalPlan plan,
196 Class<C> opClass) throws FrontendException {
197 OpFinder<C> finder = new OpFinder<C>(plan, opClass);
198 finder.visit();
199 return finder.getFoundOps();
200 }
201
202 private static class OpFinder<C extends LogicalRelationalOperator> extends LogicalRelationalNodesVisitor {
203 final Class<C> opClass;

Callers 3

countExecutedStoresMethod · 0.95
buildPlanMethod · 0.95
skipStoresMethod · 0.95

Calls 2

visitMethod · 0.95
getFoundOpsMethod · 0.95

Tested by

no test coverage detected