Class SummaryDataPointMarshaler
- java.lang.Object
-
- io.opentelemetry.exporter.internal.marshal.Marshaler
-
- io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
-
- io.opentelemetry.exporter.internal.otlp.metrics.SummaryDataPointMarshaler
-
final class SummaryDataPointMarshaler extends MarshalerWithSize
-
-
Field Summary
Fields Modifier and Type Field Description private MarshalerWithSize[]attributesprivate longcountprivate ValueAtQuantileMarshaler[]quantileValuesprivate longstartTimeUnixNanoprivate doublesumprivate longtimeUnixNano
-
Constructor Summary
Constructors Modifier Constructor Description privateSummaryDataPointMarshaler(long startTimeUnixNano, long timeUnixNano, long count, double sum, ValueAtQuantileMarshaler[] quantileValues, MarshalerWithSize[] attributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static intcalculateSize(long startTimeUnixNano, long timeUnixNano, long count, double sum, ValueAtQuantileMarshaler[] quantileValues, MarshalerWithSize[] attributes)(package private) static SummaryDataPointMarshalercreate(SummaryPointData point)(package private) static SummaryDataPointMarshaler[]createRepeated(java.util.Collection<SummaryPointData> points)voidwriteTo(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
-
startTimeUnixNano
private final long startTimeUnixNano
-
timeUnixNano
private final long timeUnixNano
-
count
private final long count
-
sum
private final double sum
-
quantileValues
private final ValueAtQuantileMarshaler[] quantileValues
-
attributes
private final MarshalerWithSize[] attributes
-
-
Constructor Detail
-
SummaryDataPointMarshaler
private SummaryDataPointMarshaler(long startTimeUnixNano, long timeUnixNano, long count, double sum, ValueAtQuantileMarshaler[] quantileValues, MarshalerWithSize[] attributes)
-
-
Method Detail
-
createRepeated
static SummaryDataPointMarshaler[] createRepeated(java.util.Collection<SummaryPointData> points)
-
create
static SummaryDataPointMarshaler create(SummaryPointData point)
-
writeTo
public void writeTo(Serializer output) throws java.io.IOException
-
calculateSize
private static int calculateSize(long startTimeUnixNano, long timeUnixNano, long count, double sum, ValueAtQuantileMarshaler[] quantileValues, MarshalerWithSize[] attributes)
-
-