@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class PigStats extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PigStats.JobGraph
JobGraph is an
OperatorPlan whose members are JobStats |
Modifier and Type | Field and Description |
---|---|
protected int |
returnCode |
Constructor and Description |
---|
PigStats() |
Modifier and Type | Method and Description |
---|---|
static PigStats |
get() |
abstract java.util.List<java.lang.String> |
getAllErrorMessages() |
abstract java.util.Map<java.lang.String,java.util.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 |
java.lang.String |
getErrorMessage()
Returns error message string
|
java.lang.Throwable |
getErrorThrowable()
Returns the error code of
PigException |
abstract java.lang.String |
getFeatures() |
java.lang.String |
getHadoopVersion() |
abstract java.util.List<InputStats> |
getInputStats() |
abstract org.apache.hadoop.mapred.JobClient |
getJobClient() |
abstract PigStats.JobGraph |
getJobGraph()
Returns the DAG of the MR jobs spawned by the script
|
abstract long |
getNumberBytes(java.lang.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(java.lang.String location)
Returns the number of records for the given output location,
-1 for invalid location or name.
|
abstract java.lang.String |
getOutputAlias(java.lang.String location)
Returns the alias associated with this output location
|
abstract java.util.List<java.lang.String> |
getOutputLocations()
Returns the list of output locations in the script
|
abstract java.util.List<java.lang.String> |
getOutputNames()
Returns the list of output names in the script
|
abstract java.util.List<OutputStats> |
getOutputStats() |
abstract java.util.Properties |
getPigProperties()
Returns the properties associated with the script
|
java.lang.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 java.lang.String |
getScriptId() |
abstract long |
getSMMSpillCount()
Returns the total spill counts from
SpillableMemoryManager . |
abstract boolean |
isEmbedded() |
abstract boolean |
isSuccessful() |
abstract OutputStats |
result(java.lang.String alias) |
public static PigStats get()
public int getReturnCode()
PigRunner.ReturnCode
public java.lang.String getErrorMessage()
public int getErrorCode()
PigException
public java.lang.Throwable getErrorThrowable()
PigException
public abstract org.apache.hadoop.mapred.JobClient getJobClient()
public abstract boolean isEmbedded()
public abstract boolean isSuccessful()
public abstract java.util.Map<java.lang.String,java.util.List<PigStats>> getAllStats()
public abstract java.util.List<java.lang.String> getAllErrorMessages()
public abstract java.util.Properties getPigProperties()
public abstract PigStats.JobGraph getJobGraph()
public abstract java.util.List<java.lang.String> getOutputLocations()
public abstract java.util.List<java.lang.String> getOutputNames()
public abstract long getNumberBytes(java.lang.String location)
public abstract long getNumberRecords(java.lang.String location)
public abstract java.lang.String getOutputAlias(java.lang.String location)
public abstract long getSMMSpillCount()
SpillableMemoryManager
.public abstract long getProactiveSpillCountObjects()
public abstract long getProactiveSpillCountRecords()
public abstract long getBytesWritten()
public abstract long getRecordWritten()
public java.lang.String getHadoopVersion()
public java.lang.String getPigVersion()
public abstract java.lang.String getScriptId()
public abstract java.lang.String getFeatures()
public abstract long getDuration()
public abstract int getNumberJobs()
public abstract java.util.List<OutputStats> getOutputStats()
public abstract OutputStats result(java.lang.String alias)
public abstract java.util.List<InputStats> getInputStats()
Copyright © 2007-2012 The Apache Software Foundation