Class SumMarshaler
- java.lang.Object
-
- io.opentelemetry.exporter.internal.marshal.Marshaler
-
- io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
-
- io.opentelemetry.exporter.internal.otlp.metrics.SumMarshaler
-
final class SumMarshaler extends MarshalerWithSize
-
-
Field Summary
Fields Modifier and Type Field Description private ProtoEnumInfo
aggregationTemporality
private NumberDataPointMarshaler[]
dataPoints
private boolean
isMonotonic
-
Constructor Summary
Constructors Modifier Constructor Description private
SumMarshaler(NumberDataPointMarshaler[] dataPoints, ProtoEnumInfo aggregationTemporality, boolean isMonotonic)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int
calculateSize(NumberDataPointMarshaler[] dataPoints, ProtoEnumInfo aggregationTemporality, boolean isMonotonic)
(package private) static SumMarshaler
create(SumData<? extends PointData> sum)
void
writeTo(Serializer output)
-
Methods inherited from class io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
getBinarySerializedSize
-
Methods inherited from class io.opentelemetry.exporter.internal.marshal.Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline
-
-
-
-
Field Detail
-
dataPoints
private final NumberDataPointMarshaler[] dataPoints
-
aggregationTemporality
private final ProtoEnumInfo aggregationTemporality
-
isMonotonic
private final boolean isMonotonic
-
-
Constructor Detail
-
SumMarshaler
private SumMarshaler(NumberDataPointMarshaler[] dataPoints, ProtoEnumInfo aggregationTemporality, boolean isMonotonic)
-
-
Method Detail
-
create
static SumMarshaler create(SumData<? extends PointData> sum)
-
writeTo
public void writeTo(Serializer output) throws java.io.IOException
-
calculateSize
private static int calculateSize(NumberDataPointMarshaler[] dataPoints, ProtoEnumInfo aggregationTemporality, boolean isMonotonic)
-
-