Package org.apache.flink.runtime.client
Class SerializedJobExecutionResult
java.lang.Object
org.apache.flink.runtime.client.SerializedJobExecutionResult
- All Implemented Interfaces:
Serializable
A variant of the
JobExecutionResult that holds its
accumulator data in serialized form.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSerializedJobExecutionResult(org.apache.flink.api.common.JobID jobID, long netRuntime, Map<String, org.apache.flink.util.SerializedValue<org.apache.flink.util.OptionalFailure<Object>>> accumulators) Creates a new SerializedJobExecutionResult. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.api.common.JobIDgetJobId()longlonggetNetRuntime(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.org.apache.flink.api.common.JobExecutionResulttoJobExecutionResult(ClassLoader loader)
-
Constructor Details
-
SerializedJobExecutionResult
public SerializedJobExecutionResult(org.apache.flink.api.common.JobID jobID, long netRuntime, Map<String, org.apache.flink.util.SerializedValue<org.apache.flink.util.OptionalFailure<Object>>> accumulators) Creates a new SerializedJobExecutionResult.- Parameters:
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 form
-
-
Method Details
-
getJobId
public org.apache.flink.api.common.JobID getJobId() -
getNetRuntime
public long getNetRuntime() -
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 in a desired time unit.- Parameters:
desiredUnit- the unit of the NetRuntime- Returns:
- The net execution time in the desired unit.
-
getSerializedAccumulatorResults
-
toJobExecutionResult
public org.apache.flink.api.common.JobExecutionResult toJobExecutionResult(ClassLoader loader) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-