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
MutableLongPointDataThis 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 Attributesattributesprivate longepochNanosprivate java.util.List<LongExemplarData>exemplarsprivate longstartEpochNanosprivate longvalue
-
Constructor Summary
Constructors Constructor Description MutableLongPointData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)AttributesgetAttributes()Returns the attributes of the aggregation.longgetEpochNanos()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.longgetStartEpochNanos()Returns 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, java.util.List<LongExemplarData> exemplars)Sets allMutableDoublePointDatavalues.voidset(LongPointData point)Sets allMutableDoublePointDatabased onpoint.java.lang.StringtoString()
-
-
-
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: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
public Attributes getAttributes()
Description copied from interface:PointDataReturns the attributes of the aggregation.- Specified by:
getAttributesin interfacePointData
-
getExemplars
public java.util.List<LongExemplarData> getExemplars()
Description copied from interface:LongPointDataList of exemplars collected from measurements aggregated into this point.- Specified by:
getExemplarsin interfaceLongPointData- Specified by:
getExemplarsin interfacePointData
-
set
public void set(LongPointData point)
Sets allMutableDoublePointDatabased onpoint.- Parameters:
point- The point to set values upon
-
set
public void set(long startEpochNanos, long epochNanos, Attributes attributes, long value)Sets allMutableDoublePointDatavalues 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 allMutableDoublePointDatavalues.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-