public class PlanHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <C extends PhysicalOperator> |
containsPhysicalOperator(PhysicalPlan plan,
java.lang.Class<C> opClass) |
static PhysicalPlan |
getLocalRearrangePlanFromSplit(PhysicalPlan plan,
OperatorKey rearrangeKey)
Finds POLocalRearrange from POSplit sub-plan
|
static <C> java.util.LinkedList<C> |
getPhysicalOperators(PhysicalPlan plan,
java.lang.Class<C> opClass)
Returns a LinkedList of operators contained within the physical plan which implement the supplied class, in dependency order.
|
static java.lang.String |
makeStoreTmpPath(java.lang.String orig)
Creates a relative path that can be used to build a temporary
place to store the output from a number of map-reduce tasks.
|
public static java.lang.String makeStoreTmpPath(java.lang.String orig)
public static <C extends PhysicalOperator> boolean containsPhysicalOperator(PhysicalPlan plan, java.lang.Class<C> opClass) throws VisitorException
VisitorException
public static <C> java.util.LinkedList<C> getPhysicalOperators(PhysicalPlan plan, java.lang.Class<C> opClass) throws VisitorException
plan
- opClass
- VisitorException
public static PhysicalPlan getLocalRearrangePlanFromSplit(PhysicalPlan plan, OperatorKey rearrangeKey) throws VisitorException
plan
- physical planrearrangeKey
- operator key of the POLocalRearrangeVisitorException
Copyright © 2007-2012 The Apache Software Foundation