Interface TimeseriesData
-
- All Superinterfaces:
java.lang.Cloneable,java.lang.Comparable<TimeseriesData>
- All Known Implementing Classes:
SparkTimeseriesData
public interface TimeseriesData extends java.lang.Cloneable, java.lang.Comparable<TimeseriesData>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanafter(TimeseriesData timeseriesData)TimeseriesDataalignToTimestamp(java.sql.Timestamp timestamp)booleanbefore(TimeseriesData timeseriesData)intcompareValueTo(TimeseriesData data)int[]dimensions()Gets the data dimensions of time series data.java.lang.StringgetDestination()Gets the Varchar value associated with the time series data.doublegetDoubleValue()Gets the Numeric value associated with the time series data.doublegetDoubleValueAtIndex(int index)Gets numeric value from the vectornumeric value at the given index.double[]getDoubleValues()Gets the Vector of Numeric values associated with the time series data.java.lang.StringgetFormattedStamp(LoggingTimeZone timeZone)longgetLongValue()Gets the Numeric value associated with the time series data.longgetLongValueAtIndex(int index)Gets numeric value from the vectornumeric value at the given index.long[]getLongValues()Gets the Vector of Numeric values associated with the time series data.double[][]getMatrixDoubleValues()long[][]getMatrixLongValues()java.lang.StringgetName()java.lang.StringgetNumericStatus()Gets the Status associated with the time series data.java.math.BigDecimalgetNumericValue()Deprecated.Use getDoubleValue insteadjava.math.BigDecimalgetNumericValueAtVectorIndex(int index)Deprecated.use getDoubleValueAtIndex insteadjava.sql.TimestampgetStamp()Gets the timestamp of the timeseries data.java.lang.StringgetStringValueAtIndex(int index)java.lang.String[]getStringValues()java.lang.StringgetVarcharValue()Gets the Varchar value associated with the time series data.VariableDataTypegetVariableDataType()int[]getVectorIndexes()int[]getVectorNumericIndexes()Deprecated.Use getVectorIndexes insteadjava.math.BigDecimal[]getVectorNumericValues()Deprecated.use getDoubleValues() insteadbooleanisNullValue()Checks whether the value is nullbooleanisNullValue(int index)Checks whether the value is null for a given index (vector numeric types)java.lang.BooleanisSubSet()Indicates if this Timeseries Data is a subset of the actual logged vectornumerioc value as a result of filtering by index or value.voidprint(LoggingTimeZone timezone)java.lang.StringtoStringValue()Represents the value in a stringjava.lang.StringtoStringValue(int index)Gets the string of a value for a given index for a vector numeric typejava.lang.Class<?>type()Gets the data type of time series data.
-
-
-
Method Detail
-
type
java.lang.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:
TimeseriesDataSet.getVariableDataType()
-
getNumericStatus
java.lang.String getNumericStatus() throws java.lang.NoSuchMethodExceptionGets the Status associated with the time series data.- Returns:
- the Status associated with the time series data.
- Throws:
java.lang.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 java.math.BigDecimal getNumericValue() throws java.lang.NoSuchMethodExceptionDeprecated.Use getDoubleValue insteadGets the Numeric value associated with the time series data.- Returns:
- the Numeric value associated with the time series data.
- Throws:
java.lang.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 java.lang.NoSuchMethodExceptionGets the Numeric value associated with the time series data.- Returns:
- the Numeric value associated with the time series data.
- Throws:
java.lang.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.java.lang.ArithmeticException- - In case the implementation is in a long and can't be converted to double, because of precision loss
-
getLongValue
long getLongValue() throws java.lang.NoSuchMethodExceptionGets the Numeric value associated with the time series data.- Returns:
- the Numeric value associated with the time series data.
- Throws:
java.lang.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.java.lang.ArithmeticException- - In case the implementation is in a double and can't be converted to long, because of precision loss
-
getStamp
java.sql.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
java.lang.String getVarcharValue() throws java.lang.NoSuchMethodExceptionGets the Varchar value associated with the time series data.- Returns:
- the Varchar value associated with the time series data.
- Throws:
java.lang.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
java.lang.String getDestination() throws java.lang.NoSuchMethodExceptionGets the Varchar value associated with the time series data.- Returns:
- the Varchar value associated with the time series data.
- Throws:
java.lang.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 java.math.BigDecimal[] getVectorNumericValues() throws java.lang.NoSuchMethodExceptionDeprecated.use getDoubleValues() insteadGets the Vector of Numeric values associated with the time series data.- Returns:
- the Vector of Numeric values associated with the time series data.
- Throws:
java.lang.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 java.lang.NoSuchMethodExceptionGets the Vector of Numeric values associated with the time series data.- Returns:
- the Vector of Numeric values associated with the time series data.
- Throws:
java.lang.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.java.lang.ArithmeticException- - In case the implementation is in long and can't be converted to double, because of precision loss
-
getLongValues
long[] getLongValues() throws java.lang.NoSuchMethodExceptionGets the Vector of Numeric values associated with the time series data.- Returns:
- the Vector of Numeric values associated with the time series data.
- Throws:
java.lang.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.java.lang.ArithmeticException- - In case the implementation is in a double and can't be converted to long, because of precision loss
-
getMatrixDoubleValues
double[][] getMatrixDoubleValues() throws java.lang.NoSuchMethodException- Throws:
java.lang.NoSuchMethodException
-
getMatrixLongValues
long[][] getMatrixLongValues() throws java.lang.NoSuchMethodException- Throws:
java.lang.NoSuchMethodException
-
getFormattedStamp
java.lang.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 java.math.BigDecimal getNumericValueAtVectorIndex(int index) throws java.lang.NoSuchMethodExceptionDeprecated.use getDoubleValueAtIndex insteadGets 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:
java.lang.NoSuchMethodException
-
getDoubleValueAtIndex
double getDoubleValueAtIndex(int index) throws java.lang.NoSuchMethodExceptionGets 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:
java.lang.ArithmeticException- - In case the implementation is in long and can't be converted to double, because of precision lossjava.lang.IndexOutOfBoundsException- - In case the index is not validjava.lang.NoSuchMethodException
-
getLongValueAtIndex
long getLongValueAtIndex(int index) throws java.lang.NoSuchMethodExceptionGets 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:
java.lang.ArithmeticException- - In case the implementation is in a double and can't be converted to long, because of precision lossjava.lang.IndexOutOfBoundsException- - In case the index is not validjava.lang.NoSuchMethodException
-
isSubSet
java.lang.Boolean isSubSet() throws java.lang.NoSuchMethodExceptionIndicates 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:
java.lang.NoSuchMethodException
-
getVectorNumericIndexes
@Deprecated int[] getVectorNumericIndexes() throws java.lang.NoSuchMethodExceptionDeprecated.Use getVectorIndexes insteadGets 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:
java.lang.NoSuchMethodException
-
getVectorIndexes
int[] getVectorIndexes() throws java.lang.NoSuchMethodException- Throws:
java.lang.NoSuchMethodException
-
getStringValues
java.lang.String[] getStringValues() throws java.lang.NoSuchMethodException- Throws:
java.lang.NoSuchMethodException
-
getStringValueAtIndex
java.lang.String getStringValueAtIndex(int index) throws java.lang.NoSuchMethodException- Throws:
java.lang.NoSuchMethodException
-
toStringValue
java.lang.String toStringValue() throws java.lang.NoSuchMethodExceptionRepresents the value in a string- Returns:
- The value in a string
- Throws:
java.lang.NoSuchMethodException
-
isNullValue
boolean isNullValue() throws java.lang.NoSuchMethodExceptionChecks whether the value is null- Returns:
- Throws:
java.lang.NoSuchMethodException
-
toStringValue
java.lang.String toStringValue(int index) throws java.lang.NoSuchMethodExceptionGets the string of a value for a given index for a vector numeric type- Parameters:
index-- Returns:
- Throws:
java.lang.NoSuchMethodException
-
isNullValue
boolean isNullValue(int index) throws java.lang.NoSuchMethodExceptionChecks whether the value is null for a given index (vector numeric types)- Returns:
- Throws:
java.lang.NoSuchMethodException
-
alignToTimestamp
TimeseriesData alignToTimestamp(java.sql.Timestamp timestamp) throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException
-
compareValueTo
int compareValueTo(TimeseriesData data) throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException
-
getName
java.lang.String getName()
-
-