|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.tools.pigstats.PigStats
@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class PigStats
PigStats 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 | |
---|---|
static class |
PigStats.JobGraph
JobGraph is an OperatorPlan whose members are JobStats |
Field Summary | |
---|---|
protected int |
returnCode
|
Constructor Summary | |
---|---|
PigStats()
|
Method Summary | |
---|---|
static PigStats |
get()
|
abstract List<String> |
getAllErrorMessages()
|
abstract Map<String,List<PigStats>> |
getAllStats()
|
abstract long |
getBytesWritten()
Returns the total bytes written to user specified HDFS locations of this script. |
abstract long |
getDuration()
|
int |
getErrorCode()
Returns the error code of PigException |
String |
getErrorMessage()
Returns error message string |
abstract String |
getFeatures()
|
String |
getHadoopVersion()
|
abstract List<InputStats> |
getInputStats()
|
abstract PigStats.JobGraph |
getJobGraph()
Returns the DAG of the MR jobs spawned by the script |
abstract long |
getNumberBytes(String location)
Returns the number of bytes for the given output location, -1 for invalid location or name. |
abstract int |
getNumberJobs()
Returns the number of MR jobs for this script |
abstract long |
getNumberRecords(String location)
Returns the number of records for the given output location, -1 for invalid location or name. |
abstract String |
getOutputAlias(String location)
Returns the alias associated with this output location |
abstract List<String> |
getOutputLocations()
Returns the list of output locations in the script |
abstract List<String> |
getOutputNames()
Returns the list of output names in the script |
abstract List<OutputStats> |
getOutputStats()
|
abstract Properties |
getPigProperties()
Returns the properties associated with the script |
String |
getPigVersion()
|
abstract long |
getProactiveSpillCountObjects()
Returns the total number of bags that spilled proactively |
abstract long |
getProactiveSpillCountRecords()
Returns the total number of records that spilled proactively |
abstract long |
getRecordWritten()
Returns the total number of records in user specified output locations of this script. |
int |
getReturnCode()
Returns code are defined in PigRunner.ReturnCode |
abstract String |
getScriptId()
|
abstract long |
getSMMSpillCount()
Returns the total spill counts from SpillableMemoryManager . |
abstract boolean |
isEmbedded()
|
abstract boolean |
isSuccessful()
|
abstract OutputStats |
result(String alias)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int returnCode
Constructor Detail |
---|
public PigStats()
Method Detail |
---|
public static PigStats get()
public int getReturnCode()
PigRunner.ReturnCode
public String getErrorMessage()
public int getErrorCode()
PigException
public abstract boolean isEmbedded()
public abstract boolean isSuccessful()
public abstract Map<String,List<PigStats>> getAllStats()
public abstract List<String> getAllErrorMessages()
public abstract Properties getPigProperties()
public abstract PigStats.JobGraph getJobGraph()
public abstract List<String> getOutputLocations()
public abstract List<String> getOutputNames()
public abstract long getNumberBytes(String location)
public abstract long getNumberRecords(String location)
public abstract String getOutputAlias(String location)
public abstract long getSMMSpillCount()
SpillableMemoryManager
.
public abstract long getProactiveSpillCountObjects()
public abstract long getProactiveSpillCountRecords()
public abstract long getBytesWritten()
public abstract long getRecordWritten()
public String getHadoopVersion()
public String getPigVersion()
public abstract String getScriptId()
public abstract String getFeatures()
public abstract long getDuration()
public abstract int getNumberJobs()
public abstract List<OutputStats> getOutputStats()
public abstract OutputStats result(String alias)
public abstract List<InputStats> getInputStats()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |