Class MutableLongPointData
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.data.MutableLongPointData
-
- All Implemented Interfaces:
LongPointData
,PointData
public class MutableLongPointData extends java.lang.Object implements LongPointData
MutableLongPointData
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
Fields Modifier and Type Field Description private Attributes
attributes
private long
epochNanos
private java.util.List<LongExemplarData>
exemplars
private long
startEpochNanos
private long
value
-
Constructor Summary
Constructors Constructor Description MutableLongPointData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Attributes
getAttributes()
Returns the attributes of the aggregation.long
getEpochNanos()
Returns the end time of the aggregation in epoch nanos.java.util.List<LongExemplarData>
getExemplars()
List of exemplars collected from measurements aggregated into this point.long
getStartEpochNanos()
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, java.util.List<LongExemplarData> exemplars)
Sets allMutableDoublePointData
values.void
set(LongPointData point)
Sets allMutableDoublePointData
based onpoint
.java.lang.String
toString()
-
-
-
Field Detail
-
value
private long value
-
startEpochNanos
private long startEpochNanos
-
epochNanos
private long epochNanos
-
attributes
private Attributes attributes
-
exemplars
private java.util.List<LongExemplarData> exemplars
-
-
Method Detail
-
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
public Attributes getAttributes()
Description copied from interface:PointData
Returns the attributes of the aggregation.- Specified by:
getAttributes
in interfacePointData
-
getExemplars
public java.util.List<LongExemplarData> 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
public void set(LongPointData point)
Sets allMutableDoublePointData
based onpoint
.- Parameters:
point
- The point to set values upon
-
set
public void set(long startEpochNanos, long epochNanos, Attributes attributes, long value)
Sets allMutableDoublePointData
values besides exemplars which are set to be empty.
-
set
public void set(long startEpochNanos, long epochNanos, Attributes attributes, long value, java.util.List<LongExemplarData> exemplars)
Sets allMutableDoublePointData
values.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-