org.apache.pig.tools.pigstats.mapreduce
Class SimplePigStats

java.lang.Object
  extended by org.apache.pig.tools.pigstats.PigStats
      extended by org.apache.pig.tools.pigstats.mapreduce.SimplePigStats

public final class SimplePigStats
extends PigStats

SimplePigStats encapsulates the statistics collected from a running script. It includes status of the execution, the DAG of its MR jobs, as well as information about outputs and inputs of the script.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pig.tools.pigstats.PigStats
PigStats.JobGraph, PigStats.JobGraphPrinter
 
Field Summary
 
Fields inherited from class org.apache.pig.tools.pigstats.PigStats
aliasOuputMap, DATE_FORMAT, endTime, errorCode, errorMessage, errorThrowable, jobPlan, pigContext, returnCode, startTime, userId
 
Constructor Summary
SimplePigStats()
           
 
Method Summary
 List<String> getAllErrorMessages()
           
 Map<String,List<PigStats>> getAllStats()
           
 org.apache.hadoop.mapred.JobClient getJobClient()
          Deprecated. 
 long getProactiveSpillCountObjects()
          Returns the total number of bags that spilled proactively
 long getProactiveSpillCountRecords()
          Returns the total number of records that spilled proactively
 long getSMMSpillCount()
          Returns the total spill counts from SpillableMemoryManager.
 boolean isEmbedded()
           
 
Methods inherited from class org.apache.pig.tools.pigstats.PigStats
get, getBytesWritten, getDuration, getErrorCode, getErrorMessage, getErrorThrowable, getFeatures, getFileName, getHadoopVersion, getInputStats, getJobGraph, getNumberBytes, getNumberFailedJobs, getNumberJobs, getNumberRecords, getNumberSuccessfulJobs, getOutputAlias, getOutputLocations, getOutputNames, getOutputStats, getPigContext, getPigProperties, getPigVersion, getRecordWritten, getReturnCode, getScriptId, isSuccessful, result, setBackendException, setErrorCode, setErrorMessage, setErrorThrowable, setReturnCode, start, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePigStats

public SimplePigStats()
Method Detail

getAllErrorMessages

public List<String> getAllErrorMessages()
Specified by:
getAllErrorMessages in class PigStats

getAllStats

public Map<String,List<PigStats>> getAllStats()
Specified by:
getAllStats in class PigStats

isEmbedded

public boolean isEmbedded()
Specified by:
isEmbedded in class PigStats

getSMMSpillCount

public long getSMMSpillCount()
Description copied from class: PigStats
Returns the total spill counts from SpillableMemoryManager.

Specified by:
getSMMSpillCount in class PigStats

getProactiveSpillCountObjects

public long getProactiveSpillCountObjects()
Description copied from class: PigStats
Returns the total number of bags that spilled proactively

Specified by:
getProactiveSpillCountObjects in class PigStats

getProactiveSpillCountRecords

public long getProactiveSpillCountRecords()
Description copied from class: PigStats
Returns the total number of records that spilled proactively

Specified by:
getProactiveSpillCountRecords in class PigStats

getJobClient

@Deprecated
public org.apache.hadoop.mapred.JobClient getJobClient()
Deprecated. 

Specified by:
getJobClient in class PigStats


Copyright © 2007-2012 The Apache Software Foundation