public class TrendData extends Object
The data is intended to be directly displayable by the plotter, possibly with scaling (for strings) but without adding or removing points. Correspondence between points received from the REST server and those contained in this dataset:
| Modifier and Type | Method and Description |
|---|---|
long |
getBegin()
Returns the beginning of the time range of this data set.
|
int |
getBins()
Returns the number of bins specified in the request in response to which this dataset was created.
|
long |
getEnd()
Returns the end of the time range of this data set.
|
long |
getHighT()
Returns latest time for data points contained in this dataset (excluding added endpoints).
|
long |
getLowT()
Returns earliest time for data points contained in this dataset (excluding added endpoints).
|
String[] |
getMetadata(String key)
Returns an array of string values contained in this dataset for the specified off-point metadata type.
|
String[] |
getNames()
Returns names of String constants that can be included in this dataset, indexed by value.
|
Set<String> |
getOnPointKeys()
Returns the set of keys for on-point data and metadata present in this dataset.
|
String |
getSingleValueMetadata(String key)
Returns off-point metadata value for the specified key if it is valid for the entire time window covered by this dataset.
|
long[] |
getTimeRange()
Returns the time range of this data set.
|
long[] |
getTimes()
Returns an array of timestamps for points in this dataset.
|
long[] |
getTimes(String key)
Returns an array of timestamps available in this dataset for the specified data or metadata.
|
String |
getType()
Returns data type in this dataset (see
RestSource). |
double[] |
getValues()
Returns an array of values for data in this dataset.
|
double[] |
getValues(String key)
Returns an array of values contained in this dataset for the specified metadata type.
|
boolean |
isNumeric()
Returns
true if this is a numeric dataset (as opposed to string or state). |
boolean |
isRaw()
True if this dataset was created in response to request for raw (binned or unbinned) data.
|
boolean |
isRawUnbinned()
Returns
true if this dataset contains unbinned raw data. |
public long[] getTimes()
public double[] getValues()
public long[] getTimes(String key)
key - String that identifies the data or metadata.null if there is no such data or metadata.public double[] getValues(String key)
key - String that identifies the metadata.null if there is no
such data or metadata that could be converted to double values.public String[] getMetadata(String key)
key - String that identifies the metadata.null if there is no such metadata in this dataset.public String getSingleValueMetadata(String key)
key - String that identifies the metadata.null if there is no such single-value metadata.public Set<String> getOnPointKeys()
VALUE_KEY.public long getLowT()
-1 if empty.public long getHighT()
-1 if empty.public long[] getTimeRange()
public long getBegin()
public long getEnd()
public boolean isRawUnbinned()
true if this dataset contains unbinned raw data.true if unbinned raw data.public boolean isRaw()
public int getBins()
public String[] getNames()
UnsupportedOperationException - if this is a numeric dataset.public boolean isNumeric()
true if this is a numeric dataset (as opposed to string or state).public String getType()
RestSource).Copyright © 2023 LSST. All rights reserved.