@Public public class JobExecutionResult extends JobSubmissionResult
Constructor and Description |
---|
JobExecutionResult(JobID jobID,
long netRuntime,
Map<String,OptionalFailure<Object>> accumulators)
Creates a new JobExecutionResult.
|
Modifier and Type | Method and Description |
---|---|
static JobExecutionResult |
fromJobSubmissionResult(JobSubmissionResult result)
Deprecated.
Will be removed in future versions.
|
<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.
Will be removed in future versions. Use
getAccumulatorResult(java.lang.String) instead. |
JobExecutionResult |
getJobExecutionResult()
Returns the JobExecutionResult if available.
|
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.
|
boolean |
isJobExecutionResult()
Checks if this JobSubmissionResult is also a JobExecutionResult.
|
String |
toString() |
getJobID
public JobExecutionResult(JobID jobID, long netRuntime, Map<String,OptionalFailure<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 boolean isJobExecutionResult()
JobSubmissionResult
getJobExecutionResult
to retrieve the JobExecutionResult.isJobExecutionResult
in class JobSubmissionResult
public JobExecutionResult getJobExecutionResult()
JobSubmissionResult
getJobExecutionResult
in class JobSubmissionResult
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)
getAccumulatorResult(java.lang.String)
instead.accumulatorName
- Name of the counterClassCastException
- Thrown, if the accumulator was not aggregating a Integer
@Deprecated public static JobExecutionResult fromJobSubmissionResult(JobSubmissionResult result)
result
- The SubmissionResultCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.