All Superinterfaces:
Comparable<HistoricalValue>
All Known Subinterfaces:
HistoricalValueGroup<V>, IdentifiedHistoricalValue<I>
All Known Implementing Classes:
BasicHistoricalValue

public interface HistoricalValue extends Comparable<HistoricalValue>
The basic value unit for the historical querying system. Implements comparable, which should sort values based on timestamp. Besides that, provides the date already converted to a long, and also provides the data type class of the value.
  • Field Details

    • FLAG_DIRECT_AVG

      static final int FLAG_DIRECT_AVG
      Note: this is a little unfortunate, how avg works. By being originally defined as 0, that means that if we want to make sure it's the "average", we need to make sure the value is exactly 0. This means we can't allow average to be collapsed with entry/exit.

      This value type can also mean the only value in a window (the "direct" value).

      See Also:
    • FLAG_MIN

      static final int FLAG_MIN
      See Also:
    • FLAG_MAX

      static final int FLAG_MAX
      See Also:
    • FLAG_EXIT

      static final int FLAG_EXIT
      See Also:
    • FLAG_FIRST_VAL

      static final int FLAG_FIRST_VAL
      See Also:
    • FLAG_ENTRY

      static final int FLAG_ENTRY
      See Also:
  • Method Details

    • getValue

      Object getValue()
    • getQuality

      QualityCode getQuality()
    • getTimestamp

      long getTimestamp()
    • getDataType

      DataTypeClass getDataType()
    • getFlags

      int getFlags()
      Flags are implementation dependent markers for the value.