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

    • Constructor Detail

      • GreaterEqualsFilter

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

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

        public GreaterEqualsFilter​(String sMethod,
                                   E value)
        Construct a GreaterEqualFilter for testing "Greater or Equal" 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 GreaterFilter<T,​E extends Comparable<? super E>>
        Parameters:
        extracted - an extracted value to evaluate
        Returns:
        true iff the test passes
      • subtractEqualKeys

        protected int subtractEqualKeys​(SortedMap<E,​Set<?>> mapContents,
                                        int cMatch)
        Description copied from class: GreaterFilter
        Subtract the number of equal keys from the specified match count.
        Overrides:
        subtractEqualKeys in class GreaterFilter<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
      • removeEqualKeys

        protected void removeEqualKeys​(SortedMap<E,​Set<?>> mapContents,
                                       Set setKeys)
        Description copied from class: GreaterFilter
        Remove equal keys from the specified key set.
        Overrides:
        removeEqualKeys in class GreaterFilter<T,​E extends Comparable<? super E>>
        Parameters:
        mapContents - the index contents
        setKeys - the mutable set of keys that remain to be filtered