Skip to content

Commit 64d405f

Browse files
committed
Adding missing file
1 parent 5d8b156 commit 64d405f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package org.apache.spark.scheduler
2+
3+
import org.apache.spark.annotation.DeveloperApi
4+
5+
/**
6+
* :: DeveloperApi ::
7+
* Information about an [[org.apache.spark.Accumulable]] modified during a task or stage.
8+
*/
9+
@DeveloperApi
10+
class AccumulableInfo (
11+
val id: Long,
12+
val name: String,
13+
val update: Option[String], // represents a partial update within a task
14+
val value: String) { }
15+
16+
object AccumulableInfo {
17+
def apply(id: Long, name: String, update: Option[String], value: String) =
18+
new AccumulableInfo(id, name, update, value)
19+
20+
def apply(id: Long, name: String, value: String) = new AccumulableInfo(id, name, None, value)
21+
}

0 commit comments

Comments
 (0)