org.apache.pig.backend.hadoop.executionengine.fetch
Class FetchLauncher
java.lang.Object
org.apache.pig.backend.hadoop.executionengine.fetch.FetchLauncher
public class FetchLauncher
- extends Object
This class is responsible for executing the fetch task, saving the result to disk
and do the necessary cleanup afterwards.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FetchLauncher
public FetchLauncher(PigContext pigContext)
launchPig
public PigStats launchPig(PhysicalPlan pp)
throws IOException
- Runs the fetch task by executing chain of calls on the PhysicalPlan from the leaf
up to the LoadFunc
- Parameters:
pp
- - Physical plan
- Returns:
- SimpleFetchPigStats instance representing the fetched result
- Throws:
IOException
explain
public void explain(PhysicalPlan pp,
PigContext pc,
PrintStream ps,
String format)
throws PlanException,
VisitorException,
IOException
- Creates an empty MR plan
- Parameters:
pp
- - Physical planpc
- - PigContextps
- - PrintStream to write the plan toformat
- format of the output plan
- Throws:
PlanException
VisitorException
IOException
Copyright © 2007-2012 The Apache Software Foundation