:: DeveloperApi :: Metrics about reading input data.
:: DeveloperApi :: Metrics about reading input data.
:: DeveloperApi :: Metrics about writing output data.
:: DeveloperApi :: Metrics about writing output data.
:: DeveloperApi :: Metrics pertaining to shuffle data read in a given task.
:: DeveloperApi :: Metrics pertaining to shuffle data read in a given task.
:: DeveloperApi :: Metrics pertaining to shuffle data written in a given task.
:: DeveloperApi :: Metrics pertaining to shuffle data written in a given task.
:: DeveloperApi :: Metrics tracked during the execution of a task.
:: DeveloperApi :: Metrics tracked during the execution of a task.
This class is used to house metrics both for in-progress and completed tasks. In executors, both the task thread and the heartbeat thread write to the TaskMetrics. The heartbeat thread reads it to send in-progress metrics, and the task thread reads it to send metrics along with the completed task.
So, when adding new fields, take into consideration that the whole object can be serialized for shipping off at any time to consumers of the SparkListener interface.
:: DeveloperApi :: Method by which input data was read.
:: DeveloperApi :: Method by which input data was read. Network means that the data was read over the network from a remote block manager (which may have stored the data on-disk or in-memory).
:: DeveloperApi :: Method by which output data was written.
:: DeveloperApi :: Method by which output data was written.
Executor components used with various cluster managers. See org.apache.spark.executor.Executor.