Interface TimeseriesDataSet

All Superinterfaces:
Collection<TimeseriesData>, Iterable<TimeseriesData>, Serializable
All Known Implementing Classes:
SparkTimeseriesDataSet

public interface TimeseriesDataSet extends Collection<TimeseriesData>, Serializable
  • Method Details

    • 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

      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.
      (never use, major performance hit, can lead to unpredictable states)
      Returns:
      - a ListIterator for all TimeseriesData in this TimeseriesDataSet
    • getMaxStamp

      Timestamp getMaxStamp()
      Returns:
      - the highest timestamp in the timeseries data set.
    • getMinStamp

      Timestamp getMinStamp()
      Returns:
      - the smallest timestamp in the timeseries data set
    • getTimeseriesDataOrLast

      TimeseriesData getTimeseriesDataOrLast(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

      String getMetaDataInfo(LoggingTimeZone timeZone)
    • getTimeseriesData

      TimeseriesData getTimeseriesData(Timestamp timestamp)
      Returns the data at the given timestamp or null if the data is not found
      Parameters:
      timestamp -
      Returns:
    • getMetaData

    • alignToTimestamps

      TimeseriesDataSet alignToTimestamps(TimeseriesDataSet required)
    • getVariable

      Variable getVariable()
      Note: Not always available (depending on the extraction)
      Returns:
    • getUnit

      String getUnit()