@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class JobStats extends Operator
Modifier and Type | Class and Description |
---|---|
static class |
JobStats.JobState |
Modifier and Type | Field and Description |
---|---|
static String |
ALIAS |
static String |
ALIAS_LOCATION |
protected org.apache.hadoop.conf.Configuration |
conf |
static String |
FAILURE_HEADER |
static String |
FEATURE |
protected long |
hdfsBytesRead |
protected long |
hdfsBytesWritten |
protected ArrayList<InputStats> |
inputs |
protected ArrayList<OutputStats> |
outputs |
protected JobStats.JobState |
state |
static String |
SUCCESS_HEADER |
Modifier | Constructor and Description |
---|---|
protected |
JobStats(String name,
PigStats.JobGraph plan) |
Modifier and Type | Method and Description |
---|---|
abstract void |
accept(PlanVisitor v)
Accept a visitor at this node in the graph.
|
protected long |
calculateMedianValue(List<Long> durations)
Calculate the median value from the given array
|
String |
getAlias() |
String |
getAliasLocation() |
abstract long |
getAvgMapTime()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getAvgMapTime() instead. |
abstract long |
getAvgREduceTime()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getAvgREduceTime() instead. |
long |
getBytesWritten()
Returns the total bytes written to user specified HDFS
locations of this job.
|
abstract String |
getDisplayString() |
String |
getErrorMessage() |
Exception |
getException() |
String |
getFeature() |
abstract org.apache.hadoop.mapred.Counters |
getHadoopCounters()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getHadoopCounters() instead. |
long |
getHdfsBytesRead() |
long |
getHdfsBytesWritten() |
List<InputStats> |
getInputs() |
abstract String |
getJobId() |
abstract long |
getMapInputRecords()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getMapInputRecords() instead. |
abstract long |
getMapOutputRecords()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getMapOutputRecords() instead. |
abstract long |
getMaxMapTime()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getMaxMapTime() instead. |
abstract long |
getMaxReduceTime()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getMaxReduceTime() instead. |
abstract long |
getMinMapTime()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getMinMapTime() instead. |
abstract long |
getMinReduceTime()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getMinReduceTime() instead. |
abstract Map<String,Long> |
getMultiInputCounters()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getMultiInputCounters() instead. |
abstract Map<String,Long> |
getMultiStoreCounters()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getMultiStoreCounters() instead. |
abstract int |
getNumberMaps()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getNumberMaps() instead. |
abstract int |
getNumberReduces()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getNumberReduces() instead. |
List<OutputStats> |
getOutputs() |
static long |
getOutputSize(POStore sto,
org.apache.hadoop.conf.Configuration conf)
Looks up the output size reader from OUTPUT_SIZE_READER_KEY and invokes
it to get the size of output.
|
abstract long |
getProactiveSpillCountObjects()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getProactiveSpillCountObjects() instead. |
abstract long |
getProactiveSpillCountRecs()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getProactiveSpillCountRecs() instead. |
long |
getRecordWrittern()
Returns the total number of records in user specified output
locations of this job.
|
abstract long |
getReduceInputRecords()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getReduceInputRecords() instead. |
abstract long |
getReduceOutputRecords()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getReduceOutputRecords() instead. |
abstract long |
getSMMSpillCount()
Deprecated.
If you are using mapreduce, please cast JobStats to org.apache.pig.tools.pigstats.mapreduce.MRJobStats,
then use
MRJobStats.getSMMSpillCount() instead. |
JobStats.JobState |
getState() |
boolean |
isEqual(Operator operator)
This is like a shallow equals comparison.
|
boolean |
isIndexer() |
boolean |
isSampler() |
boolean |
isSuccessful() |
void |
setBackendException(Exception e) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
void |
setErrorMsg(String errorMsg) |
void |
setSuccessful(boolean isSuccessful) |
annotate, getAnnotation, getLocation, getName, getPlan, removeAnnotation, setLocation, setPlan
public static final String ALIAS
public static final String ALIAS_LOCATION
public static final String FEATURE
public static final String SUCCESS_HEADER
public static final String FAILURE_HEADER
protected JobStats.JobState state
protected ArrayList<OutputStats> outputs
protected ArrayList<InputStats> inputs
protected org.apache.hadoop.conf.Configuration conf
protected long hdfsBytesRead
protected long hdfsBytesWritten
protected JobStats(String name, PigStats.JobGraph plan)
public abstract String getJobId()
public void setConf(org.apache.hadoop.conf.Configuration conf)
public JobStats.JobState getState()
public boolean isSuccessful()
public void setSuccessful(boolean isSuccessful)
public String getErrorMessage()
public Exception getException()
public List<OutputStats> getOutputs()
public List<InputStats> getInputs()
public String getAlias()
public String getAliasLocation()
public String getFeature()
public long getHdfsBytesRead()
public long getHdfsBytesWritten()
public long getBytesWritten()
public long getRecordWrittern()
public abstract void accept(PlanVisitor v) throws FrontendException
Operator
accept
in class Operator
v
- Visitor to accept.FrontendException
public boolean isEqual(Operator operator)
Operator
public void setErrorMsg(String errorMsg)
public void setBackendException(Exception e)
public abstract String getDisplayString()
protected long calculateMedianValue(List<Long> durations)
durations
- public boolean isSampler()
public boolean isIndexer()
@Deprecated public abstract int getNumberMaps()
MRJobStats.getNumberMaps()
instead.@Deprecated public abstract int getNumberReduces()
MRJobStats.getNumberReduces()
instead.@Deprecated public abstract long getMaxMapTime()
MRJobStats.getMaxMapTime()
instead.@Deprecated public abstract long getMinMapTime()
MRJobStats.getMinMapTime()
instead.@Deprecated public abstract long getAvgMapTime()
MRJobStats.getAvgMapTime()
instead.@Deprecated public abstract long getMaxReduceTime()
MRJobStats.getMaxReduceTime()
instead.@Deprecated public abstract long getMinReduceTime()
MRJobStats.getMinReduceTime()
instead.@Deprecated public abstract long getAvgREduceTime()
MRJobStats.getAvgREduceTime()
instead.@Deprecated public abstract long getMapInputRecords()
MRJobStats.getMapInputRecords()
instead.@Deprecated public abstract long getMapOutputRecords()
MRJobStats.getMapOutputRecords()
instead.@Deprecated public abstract long getReduceInputRecords()
MRJobStats.getReduceInputRecords()
instead.@Deprecated public abstract long getReduceOutputRecords()
MRJobStats.getReduceOutputRecords()
instead.@Deprecated public abstract long getSMMSpillCount()
MRJobStats.getSMMSpillCount()
instead.@Deprecated public abstract long getProactiveSpillCountObjects()
MRJobStats.getProactiveSpillCountObjects()
instead.@Deprecated public abstract long getProactiveSpillCountRecs()
MRJobStats.getProactiveSpillCountRecs()
instead.@Deprecated public abstract org.apache.hadoop.mapred.Counters getHadoopCounters()
MRJobStats.getHadoopCounters()
instead.@Deprecated public abstract Map<String,Long> getMultiStoreCounters()
MRJobStats.getMultiStoreCounters()
instead.@Deprecated public abstract Map<String,Long> getMultiInputCounters()
MRJobStats.getMultiInputCounters()
instead.public static long getOutputSize(POStore sto, org.apache.hadoop.conf.Configuration conf)
sto
- POStoreconf
- configurationCopyright © 2007-2012 The Apache Software Foundation