Class MutableDoublePointData
java.lang.Object
io.opentelemetry.sdk.metrics.internal.data.MutableDoublePointData
- All Implemented Interfaces:
DoublePointData
,PointData
A mutable
DoublePointData
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
This class is not thread-safe.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Attributes
private long
private List
<DoubleExemplarData> private long
private double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the attributes of the aggregation.long
Returns the end time of the aggregation in epoch nanos.List of exemplars collected from measurements aggregated into this point.long
Returns the start time of the aggregation in epoch nanos.double
getValue()
Returns the value of the data point.int
hashCode()
void
set
(long startEpochNanos, long epochNanos, Attributes attributes, double value) Sets allMutableDoublePointData
values , besides exemplars which are set to empty.void
set
(long startEpochNanos, long epochNanos, Attributes attributes, double value, List<DoubleExemplarData> exemplars) Sets allMutableDoublePointData
values.void
set
(DoublePointData point) Sets allMutableDoublePointData
values based onpoint
.toString()
-
Field Details
-
startEpochNanos
private long startEpochNanos -
epochNanos
private long epochNanos -
attributes
-
value
private double value -
exemplars
-
-
Constructor Details
-
MutableDoublePointData
public MutableDoublePointData()
-
-
Method Details
-
getValue
public double getValue()Description copied from interface:DoublePointData
Returns the value of the data point.- Specified by:
getValue
in interfaceDoublePointData
-
getStartEpochNanos
public long getStartEpochNanos()Description copied from interface:PointData
Returns the start time of the aggregation in epoch nanos.- Specified by:
getStartEpochNanos
in interfacePointData
-
getEpochNanos
public long getEpochNanos()Description copied from interface:PointData
Returns the end time of the aggregation in epoch nanos.- Specified by:
getEpochNanos
in interfacePointData
-
getAttributes
Description copied from interface:PointData
Returns the attributes of the aggregation.- Specified by:
getAttributes
in interfacePointData
-
getExemplars
Description copied from interface:DoublePointData
List of exemplars collected from measurements aggregated into this point.- Specified by:
getExemplars
in interfaceDoublePointData
- Specified by:
getExemplars
in interfacePointData
-
set
Sets allMutableDoublePointData
values based onpoint
.- Parameters:
point
- The point to take the values from
-
set
Sets allMutableDoublePointData
values , besides exemplars which are set to empty. -
set
public void set(long startEpochNanos, long epochNanos, Attributes attributes, double value, List<DoubleExemplarData> exemplars) Sets allMutableDoublePointData
values. -
equals
-
hashCode
public int hashCode() -
toString
-