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[]
attributes
private long
count
private ValueAtQuantileMarshaler[]
quantileValues
private long
startTimeUnixNano
private double
sum
private long
timeUnixNano
-
Constructor Summary
Constructors Modifier Constructor Description private
SummaryDataPointMarshaler(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 int
calculateSize(long startTimeUnixNano, long timeUnixNano, long count, double sum, ValueAtQuantileMarshaler[] quantileValues, MarshalerWithSize[] attributes)
(package private) static SummaryDataPointMarshaler
create(SummaryPointData point)
(package private) static SummaryDataPointMarshaler[]
createRepeated(java.util.Collection<SummaryPointData> points)
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
-
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)
-
-