public class TSElement
extends java.lang.Object
A TSElement carries a timestamp and one or more values. Most queries return one
value per sample, in which case getValue() returns it directly. Queries that
request multiple aggregators (see
TSRangeParams.aggregation(AggregationType[], long)) return one value per
aggregator per bucket; in that case the values are accessible in declaration order via
getValues() and getValue() returns the first value for backward
compatibility.
| Constructor and Description |
|---|
TSElement(long timestamp,
double value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getTimestamp() |
double |
getValue() |
java.util.List<java.lang.Double> |
getValues() |
int |
hashCode() |
java.lang.String |
toString() |
public long getTimestamp()
public double getValue()
getValues().get(0).public java.util.List<java.lang.Double> getValues()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2026. All rights reserved.