Class DeltaLongTimeSeriesSerialiser

  • All Implemented Interfaces:
    Serializable, Serialiser<LongTimeSeries,​byte[]>, ToBytesSerialiser<LongTimeSeries>

    public class DeltaLongTimeSeriesSerialiser
    extends Object
    implements ToBytesSerialiser<LongTimeSeries>
    Serialises a LongTimeSeries by writing out the deltas between consecutive values in the timeseries. The same approach is used, independently, for both the timestamps and the values. This should store the time series compactly when there is some regularity in the spacing of the keys or values.

    If the values of the time series are extreme, i.e. greater than half of Long.MAX_VALUE in absolute size, then the deltas might overflow. In this case, a simpler serialisation is used where the timestamps and values are simply written out directly.

    See Also:
    Serialized Form