public class PlanHelper extends Object
Modifier and Type | Method and Description |
---|---|
static <C extends PhysicalOperator> |
containsPhysicalOperator(PhysicalPlan plan,
Class<C> opClass) |
static PhysicalPlan |
getLocalRearrangePlanFromSplit(PhysicalPlan plan,
OperatorKey rearrangeKey)
Finds POLocalRearrange from POSplit sub-plan
|
static <C> LinkedList<C> |
getPhysicalOperators(PhysicalPlan plan,
Class<C> opClass)
Returns a LinkedList of operators contained within the physical plan which implement the supplied class, in dependency order.
|
static String |
makeStoreTmpPath(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 String makeStoreTmpPath(String orig)
public static <C extends PhysicalOperator> boolean containsPhysicalOperator(PhysicalPlan plan, Class<C> opClass) throws VisitorException
VisitorException
public static <C> LinkedList<C> getPhysicalOperators(PhysicalPlan plan, 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-2017 The Apache Software Foundation