public class FetchOptimizer
extends java.lang.Object
FetchablePlanVisitor
is used
to walk through the plan.Constructor and Description |
---|
FetchOptimizer() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isFetchEnabled(PigContext pc)
Checks whether the fetch is enabled
|
static boolean |
isPlanFetchable(PigContext pc,
PhysicalPlan pp)
Visits the plan with
FetchablePlanVisitor and checks whether the
plan is fetchable. |
public static boolean isFetchEnabled(PigContext pc)
pc
- public static boolean isPlanFetchable(PigContext pc, PhysicalPlan pp) throws VisitorException
FetchablePlanVisitor
and checks whether the
plan is fetchable.pc
- PigContextpp
- the physical plan to be examinedVisitorException
Copyright © 2007-2012 The Apache Software Foundation