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