Class FilterChain<INPUT_VALUE>

  • All Implemented Interfaces:, java.lang.AutoCloseable

    public class FilterChain<INPUT_VALUE>
    extends java.lang.Object
    The FilterChain class takes a list of AbstractVeniceFilter to assemble a filter chain to manage the life cycles' of filters and perform filtering based on the order of filters. If a record has been filtered by a predecessor, then it won't be passed to latter part of the filter chain.
    • Method Detail

      • isEmpty

        public boolean isEmpty()
      • apply

        public boolean apply​(INPUT_VALUE value)
        This function passes the value through the filter chain to determine if the value can be filtered out or not.
        value -
        true if the value should be filtered out by this filter or its successor, otherwise false.
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface