Interface TimeseriesDataSet
-
- All Superinterfaces:
java.util.Collection<TimeseriesData>
,java.lang.Iterable<TimeseriesData>
,java.io.Serializable
- All Known Implementing Classes:
SparkTimeseriesDataSet
public interface TimeseriesDataSet extends java.util.Collection<TimeseriesData>, java.io.Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addTimeseriesData(TimeseriesData data)
Deprecated.(never use, major performance hit, can lead to unpredictable states)TimeseriesDataSet
alignToTimestamps(TimeseriesDataSet required)
void
append(TimeseriesDataSet data)
Deprecated.(never use, major performance hit, can lead to unpredictable states)java.sql.Timestamp
getMaxStamp()
TimeseriesDataSetMetaData
getMetaData()
java.lang.String
getMetaDataInfo(LoggingTimeZone timeZone)
java.sql.Timestamp
getMinStamp()
TimeseriesData
getTimeseriesData(int index)
TimeseriesData
getTimeseriesData(java.sql.Timestamp timestamp)
Returns the data at the given timestamp or null if the data is not foundTimeseriesData
getTimeseriesDataOrLast(java.sql.Timestamp stamp)
Returns the data at the given timestamp or repeat the last value if there is no value found at the given timestamp If there is no value before that time, null is returnedjava.lang.String
getUnit()
Variable
getVariable()
Note: Not always available (depending on the extraction)VariableDataType
getVariableDataType()
java.lang.String
getVariableName()
java.util.ListIterator<TimeseriesData>
listIterator()
Deprecated.(never use, major performance hit, can lead to unpredictable states)void
print(LoggingTimeZone utcTime)
-
-
-
Method Detail
-
getTimeseriesData
TimeseriesData getTimeseriesData(int index)
- Parameters:
index
- - the index in this TimeseriesDataSet for which TimeseriesData should be returned.- Returns:
- - TimeseriesData at the given index within this TimeseriesDataSet
-
getVariableName
java.lang.String getVariableName()
- Returns:
- - the name of the Variable to which this TimeseriesData belongs
-
getVariableDataType
VariableDataType getVariableDataType()
- Returns:
- - the type of the Variable to which this TimeseriesData belongs
-
addTimeseriesData
@Deprecated void addTimeseriesData(TimeseriesData data)
Deprecated.(never use, major performance hit, can lead to unpredictable states)- Parameters:
data
- - the TimeseriesData to be added to this TimeseriesDataSet
-
listIterator
@Deprecated java.util.ListIterator<TimeseriesData> listIterator()
Deprecated.(never use, major performance hit, can lead to unpredictable states)- Returns:
- - a ListIterator for all TimeseriesData in this TimeseriesDataSet
-
getMaxStamp
java.sql.Timestamp getMaxStamp()
- Returns:
- - the highest timestamp in the timeseries data set.
-
getMinStamp
java.sql.Timestamp getMinStamp()
- Returns:
- - the smallest timestamp in the timeseries data set
-
getTimeseriesDataOrLast
TimeseriesData getTimeseriesDataOrLast(java.sql.Timestamp stamp)
Returns the data at the given timestamp or repeat the last value if there is no value found at the given timestamp If there is no value before that time, null is returned- Parameters:
stamp
- - The given timestamp- Returns:
- - The data at the given timestamp or just before
-
print
void print(LoggingTimeZone utcTime)
-
append
@Deprecated void append(TimeseriesDataSet data)
Deprecated.(never use, major performance hit, can lead to unpredictable states)Appends a Timeseries Data Set to the end of the current data set- Parameters:
data
- The data set to be appended
-
getMetaDataInfo
java.lang.String getMetaDataInfo(LoggingTimeZone timeZone)
-
getTimeseriesData
TimeseriesData getTimeseriesData(java.sql.Timestamp timestamp)
Returns the data at the given timestamp or null if the data is not found- Parameters:
timestamp
-- Returns:
-
getMetaData
TimeseriesDataSetMetaData getMetaData()
-
alignToTimestamps
TimeseriesDataSet alignToTimestamps(TimeseriesDataSet required)
-
getVariable
Variable getVariable()
Note: Not always available (depending on the extraction)- Returns:
-
getUnit
java.lang.String getUnit()
-
-