@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class PigStats extends 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 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
|
Throwable |
getErrorThrowable()
Returns the error code of
PigException |
abstract String |
getFeatures() |
String |
getHadoopVersion() |
abstract 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(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) |
public static PigStats get()
public int getReturnCode()
PigRunner.ReturnCodepublic String getErrorMessage()
public int getErrorCode()
PigExceptionpublic Throwable getErrorThrowable()
PigExceptionpublic abstract org.apache.hadoop.mapred.JobClient getJobClient()
public abstract boolean isEmbedded()
public abstract boolean isSuccessful()
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()
Copyright © 2007-2012 The Apache Software Foundation