org.apache.pig.tools.pigstats.mapreduce
Class MRJobStats
java.lang.Object
org.apache.pig.newplan.Operator
org.apache.pig.tools.pigstats.JobStats
org.apache.pig.tools.pigstats.mapreduce.MRJobStats
@InterfaceAudience.Public
@InterfaceStability.Evolving
public final class MRJobStats
- extends JobStats
This class encapsulates the runtime statistics of a MapReduce job.
Job statistics is collected when job is completed.
Methods inherited from class org.apache.pig.tools.pigstats.JobStats |
calculateMedianValue, getBytesWritten, getErrorMessage, getException, getHdfsBytesRead, getHdfsBytesWritten, getInputs, getOutputs, getOutputSize, getRecordWrittern, getState, isEqual, isIndexer, isSampler, isSuccessful, setBackendException, setErrorMsg, setSuccessful |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SUCCESS_HEADER
public static final String SUCCESS_HEADER
- See Also:
- Constant Field Values
FAILURE_HEADER
public static final String FAILURE_HEADER
- See Also:
- Constant Field Values
getJobId
public String getJobId()
- Specified by:
getJobId
in class JobStats
getNumberMaps
public int getNumberMaps()
- Specified by:
getNumberMaps
in class JobStats
getNumberReduces
public int getNumberReduces()
- Specified by:
getNumberReduces
in class JobStats
getMaxMapTime
public long getMaxMapTime()
- Specified by:
getMaxMapTime
in class JobStats
getMinMapTime
public long getMinMapTime()
- Specified by:
getMinMapTime
in class JobStats
getAvgMapTime
public long getAvgMapTime()
- Specified by:
getAvgMapTime
in class JobStats
getMaxReduceTime
public long getMaxReduceTime()
- Specified by:
getMaxReduceTime
in class JobStats
getMinReduceTime
public long getMinReduceTime()
- Specified by:
getMinReduceTime
in class JobStats
getAvgREduceTime
public long getAvgREduceTime()
- Specified by:
getAvgREduceTime
in class JobStats
getMapInputRecords
public long getMapInputRecords()
- Specified by:
getMapInputRecords
in class JobStats
getMapOutputRecords
public long getMapOutputRecords()
- Specified by:
getMapOutputRecords
in class JobStats
getReduceInputRecords
public long getReduceInputRecords()
- Specified by:
getReduceInputRecords
in class JobStats
getReduceOutputRecords
public long getReduceOutputRecords()
- Specified by:
getReduceOutputRecords
in class JobStats
getSMMSpillCount
public long getSMMSpillCount()
- Specified by:
getSMMSpillCount
in class JobStats
getProactiveSpillCountObjects
public long getProactiveSpillCountObjects()
- Specified by:
getProactiveSpillCountObjects
in class JobStats
getProactiveSpillCountRecs
public long getProactiveSpillCountRecs()
- Specified by:
getProactiveSpillCountRecs
in class JobStats
getHadoopCounters
public org.apache.hadoop.mapred.Counters getHadoopCounters()
- Specified by:
getHadoopCounters
in class JobStats
getMultiStoreCounters
public Map<String,Long> getMultiStoreCounters()
- Specified by:
getMultiStoreCounters
in class JobStats
getMultiInputCounters
public Map<String,Long> getMultiInputCounters()
- Specified by:
getMultiInputCounters
in class JobStats
getAlias
public String getAlias()
- Overrides:
getAlias
in class JobStats
getAliasLocation
public String getAliasLocation()
- Overrides:
getAliasLocation
in class JobStats
getFeature
public String getFeature()
- Overrides:
getFeature
in class JobStats
accept
public void accept(PlanVisitor v)
throws FrontendException
- Description copied from class:
Operator
- Accept a visitor at this node in the graph.
- Specified by:
accept
in class JobStats
- Parameters:
v
- Visitor to accept.
- Throws:
FrontendException
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
- Overrides:
setConf
in class JobStats
getDisplayString
public String getDisplayString()
- Specified by:
getDisplayString
in class JobStats
Copyright © 2007-2012 The Apache Software Foundation