public class AccumulableInfo
extends Object
implements scala.Product, scala.Serializable
Accumulable
modified during a task or stage.
param: id accumulator ID param: name accumulator name param: update partial value from a task, may be None if used on driver to describe a stage param: value total accumulated value so far, maybe None if used on executors to describe a task param: internal whether this accumulator was internal param: countFailedValues whether to count this accumulator's partial value if the task failed param: metadata internal metadata associated with this accumulator, if any
update
and value
will be lost and be
cast to strings. This is because the user can define an accumulator of any type and it will
be difficult to preserve the type in consumers of the event log. This does not apply to
internal accumulators that represent task level metrics.Modifier and Type | Method and Description |
---|---|
static AccumulableInfo |
apply(long id,
String name,
scala.Option<String> update,
String value)
Deprecated.
do not create AccumulableInfo. Since 2.0.0.
|
static AccumulableInfo |
apply(long id,
String name,
scala.Option<String> update,
String value,
boolean internal)
Deprecated.
do not create AccumulableInfo. Since 2.0.0.
|
static AccumulableInfo |
apply(long id,
String name,
String value)
Deprecated.
do not create AccumulableInfo. Since 2.0.0.
|
long |
id() |
scala.Option<String> |
name() |
scala.Option<Object> |
update() |
scala.Option<Object> |
value() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static AccumulableInfo apply(long id, String name, scala.Option<String> update, String value, boolean internal)
public static AccumulableInfo apply(long id, String name, scala.Option<String> update, String value)
public static AccumulableInfo apply(long id, String name, String value)
public long id()
public scala.Option<String> name()
public scala.Option<Object> update()
public scala.Option<Object> value()