Class ComparableFilter

All Implemented Interfaces:
Filter
Direct Known Subclasses:
IndexOnlyFilter, SortingAwareFilter, StringFilter

public abstract class ComparableFilter extends FieldBasedFilter
An abstract class representing a filter that compares fields.
Since:
4.0
Author:
Anindya Chatterjee
  • Constructor Details

    • ComparableFilter

      public ComparableFilter(String field, Object value)
      Instantiates a new Comparable filter.
      Parameters:
      field - the field
      value - the value
  • Method Details

    • getComparable

      public Comparable getComparable()
      Gets the Comparable value to filter.
      Returns:
      the comparable
    • applyOnIndex

      public abstract List<?> applyOnIndex(org.dizitart.no2.index.IndexMap indexMap)
      Apply this filter on a nitrite index.
      Parameters:
      indexMap - the index scanner
      Returns:
      the object