stage id
index of the partition
the number of attempts to execute this task
whether the task is running locally in the driver JVM
performance metrics of the task
Add a listener in the form of a Scala closure to be executed on task completion.
Add a listener in the form of a Scala closure to be executed on task completion. This will be called in all situation - success, failure, or cancellation.
An example use is for HadoopRDD to register a callback to close the input stream.
Add a (Java friendly) listener to be executed on task completion.
Add a (Java friendly) listener to be executed on task completion. This will be called in all situation - success, failure, or cancellation.
An example use is for HadoopRDD to register a callback to close the input stream.
the number of attempts to execute this task
Checks whether the task has completed.
Checks whether the task has been killed.
index of the partition
whether the task is running locally in the driver JVM
stage id
Add a callback function to be executed on task completion.
Add a callback function to be executed on task completion. An example use is for HadoopRDD to register a callback to close the input stream. Will be called in any situation - success, failure, or cancellation.
Callback function.
(Since version 1.1.0) use addTaskCompletionListener
(Since version 0.8.1) use partitionId
:: DeveloperApi :: Contextual information about a task which can be read or mutated during execution.