public class SerializedJobExecutionResult extends Object implements Serializable
JobExecutionResult
that holds its
accumulator data in serialized form.Constructor and Description |
---|
SerializedJobExecutionResult(JobID jobID,
long netRuntime,
Map<String,SerializedValue<OptionalFailure<Object>>> accumulators)
Creates a new SerializedJobExecutionResult.
|
Modifier and Type | Method and Description |
---|---|
JobID |
getJobId() |
long |
getNetRuntime() |
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.
|
Map<String,SerializedValue<OptionalFailure<Object>>> |
getSerializedAccumulatorResults() |
JobExecutionResult |
toJobExecutionResult(ClassLoader loader) |
public SerializedJobExecutionResult(JobID jobID, long netRuntime, Map<String,SerializedValue<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 accumulator results produced by the job, in serialized formpublic JobID getJobId()
public long getNetRuntime()
public long getNetRuntime(TimeUnit desiredUnit)
desiredUnit
- the unit of the NetRuntimepublic Map<String,SerializedValue<OptionalFailure<Object>>> getSerializedAccumulatorResults()
public JobExecutionResult toJobExecutionResult(ClassLoader loader) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.