@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 java.lang.String |
ALIAS |
static java.lang.String |
ALIAS_LOCATION |
protected org.apache.hadoop.conf.Configuration |
conf |
static java.lang.String |
FAILURE_HEADER |
static java.lang.String |
FEATURE |
protected long |
hdfsBytesRead |
protected long |
hdfsBytesWritten |
protected java.util.ArrayList<InputStats> |
inputs |
protected java.util.ArrayList<OutputStats> |
outputs |
protected JobStats.JobState |
state |
static java.lang.String |
SUCCESS_HEADER |
Modifier | Constructor and Description |
---|---|
protected |
JobStats(java.lang.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(java.util.List<java.lang.Long> durations)
Calculate the median value from the given array
|
java.lang.String |
getAlias() |
java.lang.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 java.lang.String |
getDisplayString() |
java.lang.String |
getErrorMessage() |
java.lang.Exception |
getException() |
java.lang.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() |
java.util.List<InputStats> |
getInputs() |
abstract java.lang.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 java.util.Map<java.lang.String,java.lang.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 java.util.Map<java.lang.String,java.lang.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. |
java.util.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(java.lang.Exception e) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
void |
setErrorMsg(java.lang.String errorMsg) |
void |
setSuccessful(boolean isSuccessful) |
annotate, getAnnotation, getLocation, getName, getPlan, removeAnnotation, setLocation, setPlan
public static final java.lang.String ALIAS
public static final java.lang.String ALIAS_LOCATION
public static final java.lang.String FEATURE
public static final java.lang.String SUCCESS_HEADER
public static final java.lang.String FAILURE_HEADER
protected JobStats.JobState state
protected java.util.ArrayList<OutputStats> outputs
protected java.util.ArrayList<InputStats> inputs
protected org.apache.hadoop.conf.Configuration conf
protected long hdfsBytesRead
protected long hdfsBytesWritten
protected JobStats(java.lang.String name, PigStats.JobGraph plan)
public abstract java.lang.String getJobId()
public void setConf(org.apache.hadoop.conf.Configuration conf)
public JobStats.JobState getState()
public boolean isSuccessful()
public void setSuccessful(boolean isSuccessful)
public java.lang.String getErrorMessage()
public java.lang.Exception getException()
public java.util.List<OutputStats> getOutputs()
public java.util.List<InputStats> getInputs()
public java.lang.String getAlias()
public java.lang.String getAliasLocation()
public java.lang.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(java.lang.String errorMsg)
public void setBackendException(java.lang.Exception e)
public abstract java.lang.String getDisplayString()
protected long calculateMedianValue(java.util.List<java.lang.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 java.util.Map<java.lang.String,java.lang.Long> getMultiStoreCounters()
MRJobStats.getMultiStoreCounters()
instead.@Deprecated public abstract java.util.Map<java.lang.String,java.lang.Long> getMultiInputCounters()
MRJobStats.getMultiInputCounters()
instead.public static long getOutputSize(POStore sto, org.apache.hadoop.conf.Configuration conf)
sto
- POStoreconf
- configurationCopyright © 2007-2017 The Apache Software Foundation