Class Filter.UnionFilter

  • All Implemented Interfaces:
    Filter
    Enclosing interface:
    Filter

    public static class Filter.UnionFilter
    extends Object
    implements Filter
    Union of different "ranges".
    • Constructor Detail

      • UnionFilter

        public UnionFilter​(Filter filter1,
                           Filter filter2)
    • Method Detail

      • intersects

        public boolean intersects​(double[] min,
                                  double[] max)
        Description copied from interface: Filter
        Intersects is used for the tree nodes and should only check for intersection.
        Specified by:
        intersects in interface Filter
        Parameters:
        min - Min bound of rectangle,
        max - Max bound of rectangle,
        Returns:
        True if there could exist a matching element in given range.
      • matches

        public boolean matches​(Index.BoxEntry<?> entry)
        Description copied from interface: Filter
        This is used on the actual entries. Anything that matches will be returned.
        Specified by:
        matches in interface Filter
        Parameters:
        entry - An entry with an existing value()
        Returns:
        True if this entry is part of the result set
      • union

        public Filter.UnionFilter union​(Filter anotherFilter)
        Chaining another filter.
        Parameters:
        anotherFilter - the filter to merge
        Returns:
        resulting merged filter