== [[TaskResult]] TaskResults -- DirectTaskResult and IndirectTaskResult
TaskResult models a task result. It has exactly two concrete implementations:
> is the
TaskResultto be serialized and sent over the wire to the driver together with the result bytes and accumulators.
> is the
TaskResultthat is just a pointer to a task result in a
The decision of the concrete
TaskResult is made when a executor:TaskRunner.md#run[
TaskRunner finishes running a task and checks the size of the result].
NOTE: The types are
DirectTaskResult Task Result
DirectTaskResultT extends TaskResult[T] with Externalizable
DirectTaskResult is the <
DirectTaskResult is Java's https://docs.oracle.com/javase/8/docs/api/java/io/Externalizable.html[java.io.Externalizable].
IndirectTaskResult Task Result
IndirectTaskResultT extends TaskResult[T] with Serializable
IndirectTaskResult is a <
IndirectTaskResult is Java's https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html[java.io.Serializable].