Class IndexOnlyFilter

  • All Implemented Interfaces:
    Filter

    public abstract class IndexOnlyFilter
    extends ComparableFilter
    An abstract class representing a filter that can be applied to an index.

    NOTE: This filter does not support collection scan.

    Since:
    4.0
    Author:
    Anindya Chatterjee
    • Constructor Detail

      • IndexOnlyFilter

        public IndexOnlyFilter​(String field,
                               Object value)
        Instantiates a new IndexOnlyFilter.
        Parameters:
        field - the field
        value - the value
    • Method Detail

      • supportedIndexType

        public abstract String supportedIndexType()
        Gets the supported index type for this filter.
        Returns:
        the supported index type
      • canBeGrouped

        public abstract boolean canBeGrouped​(IndexOnlyFilter other)
        Checks if other filter can be grouped together with this filter.
        Parameters:
        other - the comparable filter
        Returns:
        the boolean