Class DeadbandCompressor

    • Constructor Detail

      • DeadbandCompressor

        public DeadbandCompressor​(Deadband deadband)
    • Method Detail

      • putValue

        public java.util.List<QualifiedValue> putValue​(QualifiedValue value)
        Description copied from interface: ValueCompressor
        Places a value into the compressor to be processed. Any available processed values are returned. Will return an empty list if no values should be emitted (will not return null).

        Important: For performance reasons, the list returned may be the same object between calls. Therefore, it should not be held onto. The values should be utilized directly after calling this function.

        Specified by:
        putValue in interface ValueCompressor
      • flush

        public java.util.List<QualifiedValue> flush()
        Description copied from interface: ValueCompressor
        Tells the compressor to return any values it can. Can be used before shutdown, or when the max-age has been reached in order to force values to be written.

        Important: For performance reasons, the list returned may be the same object between calls. Therefore, it should not be held onto. The values should be utilized directly after calling this function.

        Specified by:
        flush in interface ValueCompressor
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object