Class VariableStatistics
- java.lang.Object
-
- cern.nxcals.api.backport.domain.core.timeseriesdata.VariableStatistics
-
- All Implemented Interfaces:
java.io.Serializable
public class VariableStatistics extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VariableStatistics.VariableStatisticsBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VariableStatistics.VariableStatisticsBuilder
builder()
@NonNull java.math.BigDecimal
getAvgValue()
java.lang.String
getFormattedMaxTstamp(LoggingTimeZone timeZone)
java.lang.String
getFormattedMinTstamp(LoggingTimeZone timeZone)
double
getFrequencyHz()
@NonNull java.sql.Timestamp
getMaxTstamp()
@NonNull java.math.BigDecimal
getMaxValue()
@NonNull java.sql.Timestamp
getMinTstamp()
@NonNull java.math.BigDecimal
getMinValue()
@NonNull java.math.BigDecimal
getStandardDeviationValue()
@NonNull java.lang.String
getSystem()
long
getValueCount()
@NonNull java.lang.String
getVariableName()
-
-
-
Method Detail
-
getFormattedMaxTstamp
public java.lang.String getFormattedMaxTstamp(LoggingTimeZone timeZone)
- Parameters:
timeZone
- - timezone used to format the maximum timestamp of this VariableStatistics- Returns:
- - a String representing the maximum timestamp of this VariableStatistics object, formatted according to the given timezone
-
getFormattedMinTstamp
public java.lang.String getFormattedMinTstamp(LoggingTimeZone timeZone)
- Parameters:
timeZone
- - timezone used to format the minimum timestamp of this VariableStatistics- Returns:
- - a String representing the minimum timestamp of this VariableStatistics object, formatted according to the given timezone
-
getFrequencyHz
public double getFrequencyHz()
- Returns:
- - the frequency of the data in Hz
-
builder
public static VariableStatistics.VariableStatisticsBuilder builder()
-
getValueCount
public long getValueCount()
-
getMaxTstamp
@NonNull public @NonNull java.sql.Timestamp getMaxTstamp()
-
getMinTstamp
@NonNull public @NonNull java.sql.Timestamp getMinTstamp()
-
getVariableName
@NonNull public @NonNull java.lang.String getVariableName()
-
getSystem
@NonNull public @NonNull java.lang.String getSystem()
-
getMaxValue
@NonNull public @NonNull java.math.BigDecimal getMaxValue()
-
getMinValue
@NonNull public @NonNull java.math.BigDecimal getMinValue()
-
getAvgValue
@NonNull public @NonNull java.math.BigDecimal getAvgValue()
-
getStandardDeviationValue
@NonNull public @NonNull java.math.BigDecimal getStandardDeviationValue()
-
-