|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pig.tools.pigstats.PigStats
org.apache.pig.tools.pigstats.EmptyPigStats
public class EmptyPigStats
EmptyPigStats encapsulates dummy statistics of a fetch task, since during a fetch no MR jobs are executed
| 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 | |
|---|---|
EmptyPigStats()
|
|
EmptyPigStats(PigContext pigContext,
POStore poStore)
|
|
| Method Summary | |
|---|---|
List<String> |
getAllErrorMessages()
|
Map<String,List<PigStats>> |
getAllStats()
|
long |
getBytesWritten()
Returns the total bytes written to user specified HDFS locations of this script. |
List<InputStats> |
getInputStats()
|
org.apache.hadoop.mapred.JobClient |
getJobClient()
|
PigStats.JobGraph |
getJobGraph()
Returns the DAG of jobs spawned by the script |
long |
getNumberBytes(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(String location)
Returns the number of records for the given output location, -1 for invalid location or name. |
int |
getNumberSuccessfulJobs()
|
String |
getOutputAlias(String location)
Returns the alias associated with this output location |
List<String> |
getOutputLocations()
Returns the list of output locations in the script |
List<String> |
getOutputNames()
Returns the list of output names in the script |
List<OutputStats> |
getOutputStats()
|
long |
getProactiveSpillCountObjects()
Returns the total number of bags that spilled proactively |
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. |
long |
getSMMSpillCount()
Returns the total spill counts from SpillableMemoryManager. |
boolean |
isEmbedded()
|
OutputStats |
result(String alias)
|
void |
setBackendException(String jobId,
Exception e)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class org.apache.pig.tools.pigstats.PigStats |
|---|
get, getDuration, getErrorCode, getErrorMessage, getErrorThrowable, getFeatures, getFileName, getHadoopVersion, getPigContext, getPigProperties, getPigVersion, getReturnCode, getScriptId, isSuccessful, setErrorCode, setErrorMessage, setErrorThrowable, setReturnCode, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyPigStats()
public EmptyPigStats(PigContext pigContext,
POStore poStore)
| Method Detail |
|---|
public org.apache.hadoop.mapred.JobClient getJobClient()
getJobClient in class PigStatspublic boolean isEmbedded()
isEmbedded in class PigStatspublic Map<String,List<PigStats>> getAllStats()
getAllStats in class PigStatspublic List<String> getAllErrorMessages()
getAllErrorMessages in class PigStatspublic PigStats.JobGraph getJobGraph()
PigStats
getJobGraph in class PigStatspublic List<String> getOutputLocations()
PigStats
getOutputLocations in class PigStatspublic List<String> getOutputNames()
PigStats
getOutputNames in class PigStatspublic long getNumberBytes(String location)
PigStats
getNumberBytes in class PigStatspublic long getNumberRecords(String location)
PigStats
getNumberRecords in class PigStatspublic String getOutputAlias(String location)
PigStats
getOutputAlias in class PigStatspublic long getSMMSpillCount()
PigStatsSpillableMemoryManager.
getSMMSpillCount in class PigStatspublic long getProactiveSpillCountRecords()
PigStats
getProactiveSpillCountRecords in class PigStatspublic long getProactiveSpillCountObjects()
PigStats
getProactiveSpillCountObjects in class PigStatspublic long getBytesWritten()
PigStats
getBytesWritten in class PigStatspublic long getRecordWritten()
PigStats
getRecordWritten in class PigStatspublic int getNumberJobs()
PigStats
getNumberJobs in class PigStatspublic List<OutputStats> getOutputStats()
getOutputStats in class PigStatspublic OutputStats result(String alias)
result in class PigStatspublic List<InputStats> getInputStats()
getInputStats in class PigStats
public void setBackendException(String jobId,
Exception e)
setBackendException in class PigStatspublic void start()
start in class PigStatspublic void stop()
stop in class PigStatspublic int getNumberSuccessfulJobs()
getNumberSuccessfulJobs in class PigStatspublic int getNumberFailedJobs()
getNumberFailedJobs in class PigStats
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||