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 Attributesprivate longprivate List<LongExemplarData> private longprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the attributes of the aggregation.longReturns the end time of the aggregation in epoch nanos.List of exemplars collected from measurements aggregated into this point.longReturns the start time of the aggregation in epoch nanos.longgetValue()Returns the value of the data point.inthashCode()voidset(long startEpochNanos, long epochNanos, Attributes attributes, long value) Sets allMutableDoublePointDatavalues besides exemplars which are set to be empty.voidset(long startEpochNanos, long epochNanos, Attributes attributes, long value, List<LongExemplarData> exemplars) Sets allMutableDoublePointDatavalues.voidset(LongPointData point) Sets allMutableDoublePointDatabased 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:LongPointDataReturns the value of the data point.- Specified by:
getValuein interfaceLongPointData
-
getStartEpochNanos
public long getStartEpochNanos()Description copied from interface:PointDataReturns the start time of the aggregation in epoch nanos.- Specified by:
getStartEpochNanosin interfacePointData
-
getEpochNanos
public long getEpochNanos()Description copied from interface:PointDataReturns the end time of the aggregation in epoch nanos.- Specified by:
getEpochNanosin interfacePointData
-
getAttributes
Description copied from interface:PointDataReturns the attributes of the aggregation.- Specified by:
getAttributesin interfacePointData
-
getExemplars
Description copied from interface:LongPointDataList of exemplars collected from measurements aggregated into this point.- Specified by:
getExemplarsin interfaceLongPointData- Specified by:
getExemplarsin interfacePointData
-
set
Sets allMutableDoublePointDatabased onpoint.- Parameters:
point- The point to set values upon
-
set
Sets allMutableDoublePointDatavalues besides exemplars which are set to be empty. -
set
public void set(long startEpochNanos, long epochNanos, Attributes attributes, long value, List<LongExemplarData> exemplars) Sets allMutableDoublePointDatavalues. -
equals
-
hashCode
-
toString
-