org.apache.pig.backend.hadoop.executionengine
Class HExecutionEngine

java.lang.Object
  extended by org.apache.pig.backend.hadoop.executionengine.HExecutionEngine

public class HExecutionEngine
extends Object


Nested Class Summary
static class HExecutionEngine.SortInfoSetter
           
 
Field Summary
protected  DataStorage ds
           
static String JOB_TRACKER_LOCATION
           
protected  org.apache.hadoop.mapred.JobConf jobConf
           
static String LOCAL
           
protected  Map<OperatorKey,OperatorKey> logicalToPhysicalKeys
           
protected  Map<OperatorKey,MapRedResult> materializedResults
           
protected  PigContext pigContext
           
 
Constructor Summary
HExecutionEngine(PigContext pigContext)
           
 
Method Summary
static FileSpec checkLeafIsStore(PhysicalPlan plan, PigContext pigContext)
           
 void close()
           
 PhysicalPlan compile(LogicalPlan plan, Properties properties)
           
 List<ExecJob> execute(PhysicalPlan plan, String jobName)
           
 void explain(PhysicalPlan plan, PrintStream stream, String format, boolean verbose)
           
 Properties getConfiguration()
           
 DataStorage getDataStorage()
           
 org.apache.hadoop.mapred.JobConf getJobConf()
           
 Map<OperatorKey,MapRedResult> getMaterializedResults()
           
 Map<String,Object> getStatistics()
           
 void init()
           
 void init(Properties properties)
           
 void updateConfiguration(Properties newConfiguration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOB_TRACKER_LOCATION

public static final String JOB_TRACKER_LOCATION
See Also:
Constant Field Values

LOCAL

public static final String LOCAL
See Also:
Constant Field Values

pigContext

protected PigContext pigContext

ds

protected DataStorage ds

jobConf

protected org.apache.hadoop.mapred.JobConf jobConf

logicalToPhysicalKeys

protected Map<OperatorKey,OperatorKey> logicalToPhysicalKeys

materializedResults

protected Map<OperatorKey,MapRedResult> materializedResults
Constructor Detail

HExecutionEngine

public HExecutionEngine(PigContext pigContext)
Method Detail

getJobConf

public org.apache.hadoop.mapred.JobConf getJobConf()

getMaterializedResults

public Map<OperatorKey,MapRedResult> getMaterializedResults()

getDataStorage

public DataStorage getDataStorage()

init

public void init()
          throws ExecException
Throws:
ExecException

init

public void init(Properties properties)
          throws ExecException
Throws:
ExecException

getConfiguration

public Properties getConfiguration()
                            throws ExecException
Throws:
ExecException

updateConfiguration

public void updateConfiguration(Properties newConfiguration)
                         throws ExecException
Throws:
ExecException

close

public void close()
           throws ExecException
Throws:
ExecException

getStatistics

public Map<String,Object> getStatistics()
                                 throws ExecException
Throws:
ExecException

compile

public PhysicalPlan compile(LogicalPlan plan,
                            Properties properties)
                     throws FrontendException
Throws:
FrontendException

execute

public List<ExecJob> execute(PhysicalPlan plan,
                             String jobName)
                      throws ExecException,
                             FrontendException
Throws:
ExecException
FrontendException

explain

public void explain(PhysicalPlan plan,
                    PrintStream stream,
                    String format,
                    boolean verbose)

checkLeafIsStore

public static FileSpec checkLeafIsStore(PhysicalPlan plan,
                                        PigContext pigContext)
                                 throws ExecException
Throws:
ExecException


Copyright © ${year} The Apache Software Foundation