File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
core/src/main/scala/org/apache/spark/executor Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,11 @@ class TaskMetrics extends Serializable {
149
149
*/
150
150
def outputMetrics : Option [OutputMetrics ] = _outputMetrics
151
151
152
+ @ deprecated(" setting OutputMetrics is for internal use only" , " 2.0.0" )
153
+ def outputMetrics_= (om : Option [OutputMetrics ]): Unit = {
154
+ _outputMetrics = om
155
+ }
156
+
152
157
/**
153
158
* Get or create a new [[OutputMetrics ]] associated with this task.
154
159
*/
@@ -225,6 +230,11 @@ class TaskMetrics extends Serializable {
225
230
*/
226
231
def shuffleWriteMetrics : Option [ShuffleWriteMetrics ] = _shuffleWriteMetrics
227
232
233
+ @ deprecated(" setting ShuffleWriteMetrics is for internal use only" , " 2.0.0" )
234
+ def shuffleWriteMetrics_= (swm : Option [ShuffleWriteMetrics ]): Unit = {
235
+ _shuffleWriteMetrics = swm
236
+ }
237
+
228
238
/**
229
239
* Get or create a new [[ShuffleWriteMetrics ]] associated with this task.
230
240
*/
@@ -244,6 +254,11 @@ class TaskMetrics extends Serializable {
244
254
*/
245
255
def updatedBlockStatuses : Seq [(BlockId , BlockStatus )] = _updatedBlockStatuses
246
256
257
+ @ deprecated(" setting updated blocks is for internal use only" , " 2.0.0" )
258
+ def updatedBlocks_= (ub : Option [Seq [(BlockId , BlockStatus )]]): Unit = {
259
+ _updatedBlockStatuses = ub.getOrElse(Seq .empty[(BlockId , BlockStatus )])
260
+ }
261
+
247
262
private [spark] def incUpdatedBlockStatuses (v : Seq [(BlockId , BlockStatus )]): Unit = {
248
263
_updatedBlockStatuses ++= v
249
264
}
You can’t perform that action at this time.
0 commit comments