@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 |
static class |
PigStats.JobGraphPrinter
This class prints a JobGraph
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,OutputStats> |
aliasOuputMap |
protected static java.lang.String |
DATE_FORMAT |
protected long |
endTime |
protected int |
errorCode |
protected java.lang.String |
errorMessage |
protected java.lang.Throwable |
errorThrowable |
protected PigStats.JobGraph |
jobPlan |
protected PigContext |
pigContext |
protected int |
returnCode |
protected long |
startTime |
protected java.lang.String |
userId |
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() |
long |
getBytesWritten()
Returns the total bytes written to user specified HDFS
locations of this script.
|
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 |
java.lang.String |
getFeatures() |
java.lang.String |
getFileName() |
java.lang.String |
getHadoopVersion() |
java.util.List<InputStats> |
getInputStats() |
abstract org.apache.hadoop.mapred.JobClient |
getJobClient()
Deprecated.
|
PigStats.JobGraph |
getJobGraph()
Returns the DAG of jobs spawned by the script
|
long |
getNumberBytes(java.lang.String location)
Returns the number of bytes for the given output location,
-1 for invalid location or name.
|
int |
getNumberFailedJobs() |
int |
getNumberJobs()
Returns the number of jobs for this script
|
long |
getNumberRecords(java.lang.String location)
Returns the number of records for the given output location,
-1 for invalid location or name.
|
int |
getNumberSuccessfulJobs() |
java.lang.String |
getOutputAlias(java.lang.String location)
Returns the alias associated with this output location
|
java.util.List<java.lang.String> |
getOutputLocations()
Returns the list of output locations in the script
|
java.util.List<java.lang.String> |
getOutputNames()
Returns the list of output names in the script
|
java.util.List<OutputStats> |
getOutputStats() |
PigContext |
getPigContext() |
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
|
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 |
java.lang.String |
getScriptId() |
abstract long |
getSMMSpillCount()
Returns the total spill counts from
SpillableMemoryManager . |
abstract boolean |
isEmbedded() |
boolean |
isSuccessful() |
OutputStats |
result(java.lang.String alias) |
void |
setBackendException(java.lang.String jobId,
java.lang.Exception e) |
void |
setErrorCode(int errorCode) |
void |
setErrorMessage(java.lang.String errorMessage) |
void |
setErrorThrowable(java.lang.Throwable t) |
void |
setReturnCode(int returnCode) |
void |
start() |
static PigStats |
start(PigStats stats) |
void |
stop() |
protected static final java.lang.String DATE_FORMAT
protected long startTime
protected long endTime
protected java.lang.String userId
protected PigStats.JobGraph jobPlan
protected PigContext pigContext
protected java.util.Map<java.lang.String,OutputStats> aliasOuputMap
protected int errorCode
protected java.lang.String errorMessage
protected java.lang.Throwable errorThrowable
protected int returnCode
public static PigStats get()
public int getReturnCode()
PigRunner.ReturnCode
public java.lang.String getErrorMessage()
public int getErrorCode()
PigException
public java.lang.Throwable getErrorThrowable()
PigException
@Deprecated public abstract org.apache.hadoop.mapred.JobClient getJobClient()
public abstract boolean isEmbedded()
public 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 java.util.Properties getPigProperties()
public PigStats.JobGraph getJobGraph()
public java.util.List<java.lang.String> getOutputLocations()
public java.util.List<java.lang.String> getOutputNames()
public long getNumberBytes(java.lang.String location)
public long getNumberRecords(java.lang.String location)
public java.lang.String getOutputAlias(java.lang.String location)
public abstract long getSMMSpillCount()
SpillableMemoryManager
.public abstract long getProactiveSpillCountObjects()
public abstract long getProactiveSpillCountRecords()
public long getBytesWritten()
public long getRecordWritten()
public java.lang.String getHadoopVersion()
public java.lang.String getPigVersion()
public java.lang.String getScriptId()
public java.lang.String getFileName()
public java.lang.String getFeatures()
public long getDuration()
public int getNumberJobs()
public java.util.List<OutputStats> getOutputStats()
public OutputStats result(java.lang.String alias)
public java.util.List<InputStats> getInputStats()
public void setErrorMessage(java.lang.String errorMessage)
public void setErrorCode(int errorCode)
public void setErrorThrowable(java.lang.Throwable t)
public void setReturnCode(int returnCode)
@InterfaceAudience.Private public void setBackendException(java.lang.String jobId, java.lang.Exception e)
@InterfaceAudience.Private public PigContext getPigContext()
public void start()
public void stop()
public int getNumberSuccessfulJobs()
public int getNumberFailedJobs()
Copyright © 2007-2012 The Apache Software Foundation