Interface TimeseriesData

All Superinterfaces:
Cloneable, Comparable<TimeseriesData>
All Known Implementing Classes:
SparkTimeseriesData

public interface TimeseriesData extends Cloneable, Comparable<TimeseriesData>
  • Method Details

    • type

      Class<?> type()
      Gets the data type of time series data.
      Returns:
      the data type of time series data.
    • dimensions

      int[] dimensions()
      Gets the data dimensions of time series data.
      Returns:
      the data dimensions of time series data.
    • getVariableDataType

      VariableDataType getVariableDataType()
      See Also:
    • getNumericStatus

      String getNumericStatus() throws NoSuchMethodException
      Gets the Status associated with the time series data.
      Returns:
      the Status associated with the time series data.
      Throws:
      NoSuchMethodException - - if an attempt is made to retrieve the Status of time series data that does not have a status associated with it i.e. it is not of the relevant datatype.
    • getNumericValue

      @Deprecated BigDecimal getNumericValue() throws NoSuchMethodException
      Deprecated.
      Use getDoubleValue instead
      Gets the Numeric value associated with the time series data.
      Returns:
      the Numeric value associated with the time series data.
      Throws:
      NoSuchMethodException - - if an attempt is made to retrieve the Numeric value of time series data that does not have a Numeric Value associated with it i.e. it is not of the relevant datatype.
    • getDoubleValue

      double getDoubleValue() throws NoSuchMethodException
      Gets the Numeric value associated with the time series data.
      Returns:
      the Numeric value associated with the time series data.
      Throws:
      NoSuchMethodException - - if an attempt is made to retrieve the Numeric value of time series data that does not have a Numeric Value associated with it i.e. it is not of the relevant datatype.
      ArithmeticException - - In case the implementation is in a long and can't be converted to double, because of precision loss
    • getLongValue

      long getLongValue() throws NoSuchMethodException
      Gets the Numeric value associated with the time series data.
      Returns:
      the Numeric value associated with the time series data.
      Throws:
      NoSuchMethodException - - if an attempt is made to retrieve the Numeric value of time series data that does not have a Numeric Value associated with it i.e. it is not of the relevant datatype.
      ArithmeticException - - In case the implementation is in a double and can't be converted to long, because of precision loss
    • getStamp

      Timestamp getStamp()
      Gets the timestamp of the timeseries data.
      Returns:
      - the timestamp of the timeseries data.
    • after

      boolean after(TimeseriesData timeseriesData)
    • before

      boolean before(TimeseriesData timeseriesData)
    • getVarcharValue

      String getVarcharValue() throws NoSuchMethodException
      Gets the Varchar value associated with the time series data.
      Returns:
      the Varchar value associated with the time series data.
      Throws:
      NoSuchMethodException - - if an attempt is made to retrieve the Varchar value of time series data that does not have a Varchar value associated with it i.e. it is not of the relevant datatype.
    • getDestination

      String getDestination() throws NoSuchMethodException
      Gets the Varchar value associated with the time series data.
      Returns:
      the Varchar value associated with the time series data.
      Throws:
      NoSuchMethodException - - if an attempt is made to retrieve the destination value of time series data that does not have a destination value associated with it i.e. it is not of the fundamental datatype.
    • getVectorNumericValues

      @Deprecated BigDecimal[] getVectorNumericValues() throws NoSuchMethodException
      Deprecated.
      use getDoubleValues() instead
      Gets the Vector of Numeric values associated with the time series data.
      Returns:
      the Vector of Numeric values associated with the time series data.
      Throws:
      NoSuchMethodException - - if an attempt is made to retrieve the Vector of Numeric values of the time series data that does not have a Vector of Numeric values associated with it i.e. it is not of the relevant datatype.
    • getDoubleValues

      double[] getDoubleValues() throws NoSuchMethodException
      Gets the Vector of Numeric values associated with the time series data.
      Returns:
      the Vector of Numeric values associated with the time series data.
      Throws:
      NoSuchMethodException - - if an attempt is made to retrieve the Vector of Numeric values of the time series data that does not have a Vector of Numeric values associated with it i.e. it is not of the relevant datatype.
      ArithmeticException - - In case the implementation is in long and can't be converted to double, because of precision loss
    • getLongValues

      long[] getLongValues() throws NoSuchMethodException
      Gets the Vector of Numeric values associated with the time series data.
      Returns:
      the Vector of Numeric values associated with the time series data.
      Throws:
      NoSuchMethodException - - if an attempt is made to retrieve the Vector of Numeric values of the time series data that does not have a Vector of Numeric values associated with it i.e. it is not of the relevant datatype.
      ArithmeticException - - In case the implementation is in a double and can't be converted to long, because of precision loss
    • getMatrixDoubleValues

      double[][] getMatrixDoubleValues() throws NoSuchMethodException
      Throws:
      NoSuchMethodException
    • getMatrixLongValues

      long[][] getMatrixLongValues() throws NoSuchMethodException
      Throws:
      NoSuchMethodException
    • getFormattedStamp

      String getFormattedStamp(LoggingTimeZone timeZone)
      Parameters:
      timeZone - - the timezone which should be used to format the timestamp of this data
      Returns:
      - a String representing the timestamp of this data, formatted according to the given timezone
    • print

      void print(LoggingTimeZone timezone)
    • getNumericValueAtVectorIndex

      @Deprecated BigDecimal getNumericValueAtVectorIndex(int index) throws NoSuchMethodException
      Deprecated.
      use getDoubleValueAtIndex instead
      Gets numeric value from the vectornumeric value at the given index.
      Returns:
      the numeric value from the vectornumeric value at the given index or null if there is no value at the given index.
      Throws:
      NoSuchMethodException
    • getDoubleValueAtIndex

      double getDoubleValueAtIndex(int index) throws NoSuchMethodException
      Gets numeric value from the vectornumeric value at the given index.
      Returns:
      the numeric value from the vectornumeric value at the given index or null if there is no value at the given index.
      Throws:
      ArithmeticException - - In case the implementation is in long and can't be converted to double, because of precision loss
      IndexOutOfBoundsException - - In case the index is not valid
      NoSuchMethodException
    • getLongValueAtIndex

      long getLongValueAtIndex(int index) throws NoSuchMethodException
      Gets numeric value from the vectornumeric value at the given index.
      Returns:
      the numeric value from the vectornumeric value at the given index or null if there is no value at the given index.
      Throws:
      ArithmeticException - - In case the implementation is in a double and can't be converted to long, because of precision loss
      IndexOutOfBoundsException - - In case the index is not valid
      NoSuchMethodException
    • isSubSet

      Boolean isSubSet() throws NoSuchMethodException
      Indicates if this Timeseries Data is a subset of the actual logged vectornumerioc value as a result of filtering by index or value.
      Returns:
      true if this Timeseries Data is a subset of the actual logged vectornumerioc value.
      Throws:
      NoSuchMethodException
    • getVectorNumericIndexes

      @Deprecated int[] getVectorNumericIndexes() throws NoSuchMethodException
      Deprecated.
      Use getVectorIndexes instead
      Gets the array of vectornumeric element indexes. This is useful in the case that this vectornumeric data is a subset of the actual logged vectornumerioc value (as a result of filtering by index or value).
      Returns:
      the array of vectornumeric element indexes.
      Throws:
      NoSuchMethodException
    • getVectorIndexes

      int[] getVectorIndexes() throws NoSuchMethodException
      Throws:
      NoSuchMethodException
    • getStringValues

      String[] getStringValues() throws NoSuchMethodException
      Throws:
      NoSuchMethodException
    • getStringValueAtIndex

      String getStringValueAtIndex(int index) throws NoSuchMethodException
      Throws:
      NoSuchMethodException
    • toStringValue

      String toStringValue() throws NoSuchMethodException
      Represents the value in a string
      Returns:
      The value in a string
      Throws:
      NoSuchMethodException
    • isNullValue

      boolean isNullValue() throws NoSuchMethodException
      Checks whether the value is null
      Returns:
      Throws:
      NoSuchMethodException
    • toStringValue

      String toStringValue(int index) throws NoSuchMethodException
      Gets the string of a value for a given index for a vector numeric type
      Parameters:
      index -
      Returns:
      Throws:
      NoSuchMethodException
    • isNullValue

      boolean isNullValue(int index) throws NoSuchMethodException
      Checks whether the value is null for a given index (vector numeric types)
      Returns:
      Throws:
      NoSuchMethodException
    • alignToTimestamp

      TimeseriesData alignToTimestamp(Timestamp timestamp) throws NoSuchMethodException
      Throws:
      NoSuchMethodException
    • compareValueTo

      int compareValueTo(TimeseriesData data) throws NoSuchMethodException
      Throws:
      NoSuchMethodException
    • getName

      String getName()