@Public public class JobExecutionResult extends JobSubmissionResult
Constructor and Description |
---|
JobExecutionResult(JobID jobID,
long netRuntime,
Map<String,Object> accumulators)
Creates a new JobExecutionResult.
|
Modifier and Type | Method and Description |
---|---|
static JobExecutionResult |
fromJobSubmissionResult(JobSubmissionResult result)
Returns a dummy object for wrapping a JobSubmissionResult
|
<T> T |
getAccumulatorResult(String accumulatorName)
Gets the accumulator with the given name.
|
Map<String,Object> |
getAllAccumulatorResults()
Gets all accumulators produced by the job.
|
Integer |
getIntCounterResult(String accumulatorName)
Deprecated.
|
long |
getNetRuntime()
Gets the net execution time of the job, i.e., the execution time in the parallel system,
without the pre-flight steps like the optimizer.
|
long |
getNetRuntime(TimeUnit desiredUnit)
Gets the net execution time of the job, i.e., the execution time in the parallel system,
without the pre-flight steps like the optimizer in a desired time unit.
|
getJobID
public JobExecutionResult(JobID jobID, long netRuntime, Map<String,Object> accumulators)
jobID
- The job's ID.netRuntime
- The net runtime of the job (excluding pre-flight phase like the optimizer) in millisecondsaccumulators
- A map of all accumulators produced by the job.public long getNetRuntime()
public long getNetRuntime(TimeUnit desiredUnit)
desiredUnit
- the unit of the NetRuntimepublic <T> T getAccumulatorResult(String accumulatorName)
null
, if no accumulator with
that name was produced.T
- The generic type of the accumulator value.accumulatorName
- The name of the accumulator.public Map<String,Object> getAllAccumulatorResults()
@Deprecated @PublicEvolving public Integer getIntCounterResult(String accumulatorName)
accumulatorName
- Name of the counterClassCastException
- Thrown, if the accumulator was not aggregating a Integer
public static JobExecutionResult fromJobSubmissionResult(JobSubmissionResult result)
result
- The SubmissionResultCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.