Class NumberDataPointMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
io.opentelemetry.exporter.internal.otlp.metrics.NumberDataPointMarshaler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final KeyValueMarshaler[]
private final ExemplarMarshaler[]
private final long
private final long
private final PointData
private final ProtoFieldInfo
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
NumberDataPointMarshaler
(long startTimeUnixNano, long timeUnixNano, PointData value, ProtoFieldInfo valueField, ExemplarMarshaler[] exemplars, KeyValueMarshaler[] attributes) -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
calculateSize
(long startTimeUnixNano, long timeUnixNano, ProtoFieldInfo valueField, PointData value, ExemplarMarshaler[] exemplars, KeyValueMarshaler[] attributes) (package private) static NumberDataPointMarshaler
(package private) static NumberDataPointMarshaler[]
createRepeated
(Collection<? extends PointData> points) (package private) static ProtoFieldInfo
toProtoPointValueType
(PointData pointData) 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 Details
-
startTimeUnixNano
private final long startTimeUnixNano -
timeUnixNano
private final long timeUnixNano -
value
-
valueField
-
exemplars
-
attributes
-
-
Constructor Details
-
NumberDataPointMarshaler
private NumberDataPointMarshaler(long startTimeUnixNano, long timeUnixNano, PointData value, ProtoFieldInfo valueField, ExemplarMarshaler[] exemplars, KeyValueMarshaler[] attributes)
-
-
Method Details
-
createRepeated
-
create
-
writeTo
- Specified by:
writeTo
in classMarshaler
- Throws:
IOException
-
calculateSize
private static int calculateSize(long startTimeUnixNano, long timeUnixNano, ProtoFieldInfo valueField, PointData value, ExemplarMarshaler[] exemplars, KeyValueMarshaler[] attributes) -
toProtoPointValueType
-