Class AbstractVeniceFilter<INPUT_VALUE>

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    VeniceRmdTTLFilter

    public abstract class AbstractVeniceFilter<INPUT_VALUE>
    extends java.lang.Object
    implements java.io.Closeable
    An abstraction to filter given data type. It can be used in conjunction with FilterChain.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract boolean checkAndMaybeFilterValue​(INPUT_VALUE value)
      This function implements how to parse the value and determine if filtering is needed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.io.Closeable

        close
    • Constructor Detail

      • AbstractVeniceFilter

        public AbstractVeniceFilter()
    • Method Detail

      • checkAndMaybeFilterValue

        public abstract boolean checkAndMaybeFilterValue​(INPUT_VALUE value)
        This function implements how to parse the value and determine if filtering is needed. For certain value from Active/Active partial update enabled stores, it might filter out part of its input value and only keep the remaining fresh part based on filter timestamp.
        Returns:
        true if the value should be filtered out, otherwise false.