Class MutableLongPointData
java.lang.Object
io.opentelemetry.sdk.metrics.internal.data.MutableLongPointData
- All Implemented Interfaces:
LongPointData
,PointData
Mutable
LongPointData
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
<LongExemplarData> private long
private long
-
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.long
getValue()
Returns the value of the data point.int
hashCode()
void
set
(long startEpochNanos, long epochNanos, Attributes attributes, long value) Sets allMutableDoublePointData
values besides exemplars which are set to be empty.void
set
(long startEpochNanos, long epochNanos, Attributes attributes, long value, List<LongExemplarData> exemplars) Sets allMutableDoublePointData
values.void
set
(LongPointData point) Sets allMutableDoublePointData
based onpoint
.toString()
-
Field Details
-
value
private long value -
startEpochNanos
private long startEpochNanos -
epochNanos
private long epochNanos -
attributes
-
exemplars
-
-
Constructor Details
-
MutableLongPointData
public MutableLongPointData()
-
-
Method Details
-
getValue
public long getValue()Description copied from interface:LongPointData
Returns the value of the data point.- Specified by:
getValue
in interfaceLongPointData
-
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:LongPointData
List of exemplars collected from measurements aggregated into this point.- Specified by:
getExemplars
in interfaceLongPointData
- Specified by:
getExemplars
in interfacePointData
-
set
Sets allMutableDoublePointData
based onpoint
.- Parameters:
point
- The point to set values upon
-
set
Sets allMutableDoublePointData
values besides exemplars which are set to be empty. -
set
public void set(long startEpochNanos, long epochNanos, Attributes attributes, long value, List<LongExemplarData> exemplars) Sets allMutableDoublePointData
values. -
equals
-
hashCode
public int hashCode() -
toString
-