Class LessEqualsFilter<T,​E extends Comparable<? super E>>

    • Constructor Detail

      • LessEqualsFilter

        public LessEqualsFilter()
        Default constructor (necessary for the ExternalizableLite interface).
      • LessEqualsFilter

        public LessEqualsFilter​(ValueExtractor<? super T,​? extends E> extractor,
                                E value)
        Construct a LessEqualsFilter for testing "Less or Equals" condition.
        Parameters:
        extractor - the ValueExtractor to use by this filter
        value - the object to compare the result with
      • LessEqualsFilter

        public LessEqualsFilter​(String sMethod,
                                E value)
        Construct a LessEqualsFilter for testing "Less or Equals" condition.
        Parameters:
        sMethod - the name of the method to invoke via reflection
        value - the object to compare the result with
    • Method Detail

      • evaluateExtracted

        protected boolean evaluateExtracted​(E extracted)
        Evaluate the specified extracted value.
        Overrides:
        evaluateExtracted in class LessFilter<T,​E extends Comparable<? super E>>
        Parameters:
        extracted - an extracted value to evaluate
        Returns:
        true iff the test passes
      • shouldRemoveKeys

        protected boolean shouldRemoveKeys​(Set set,
                                           Set setEQ)
        Description copied from class: LessFilter
        Return true if specified keys should be removed.
        Overrides:
        shouldRemoveKeys in class LessFilter<T,​E extends Comparable<? super E>>
        Parameters:
        set - the keys to remove
        setEQ - the set of equal keys for this filter
        Returns:
        true if specified keys should be removed, false otherwise
      • addEqualKeys

        protected int addEqualKeys​(SortedMap<E,​Set<?>> mapContents,
                                   int cMatch)
        Description copied from class: LessFilter
        Add the number of equal keys to the specified match count.
        Overrides:
        addEqualKeys in class LessFilter<T,​E extends Comparable<? super E>>
        Parameters:
        mapContents - the index contents
        cMatch - current match count
        Returns:
        the updated match count, after equal keys were subtracted
      • addEqualKeys

        protected void addEqualKeys​(SortedMap<E,​Set<?>> mapContents,
                                    Set setLE)
        Description copied from class: LessFilter
        Add the equal keys to the result set.
        Overrides:
        addEqualKeys in class LessFilter<T,​E extends Comparable<? super E>>
        Parameters:
        mapContents - the index contents
        setLE - the result set