public final class SparkUserMetrics extends Object implements Metrics, Externalizable
Externalizable
implementation of Metrics
used in Spark program execution.
It has no-op for serialize/deserialize operation, with all operations delegated to the SparkRuntimeContext
of the current execution context.Constructor and Description |
---|
SparkUserMetrics()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
count(String metricName,
int delta) |
void |
gauge(String metricName,
long value) |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
public SparkUserMetrics()
SparkRuntimeContext
.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.