Package org.tinspin.index.rtree
Interface Filter
-
- All Known Implementing Classes:
Filter.RectangleIntersectFilter,Filter.UnionFilter
public interface Filter
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classFilter.RectangleIntersectFilterRectangular region filter.static classFilter.UnionFilterUnion of different "ranges".
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanintersects(double[] min, double[] max)Intersects is used for the tree nodes and should only check for intersection.default booleanmatches(Index.BoxEntry<?> entry)This is used on the actual entries.
-
-
-
Field Detail
-
ALL
static final Filter ALL
Doesn't filter anything.
-
-
Method Detail
-
intersects
boolean intersects(double[] min, double[] max)Intersects is used for the tree nodes and should only check for intersection.- Parameters:
min- Min bound of rectangle,max- Max bound of rectangle,- Returns:
- True if there could exist a matching element in given range.
-
matches
default boolean matches(Index.BoxEntry<?> entry)
This is used on the actual entries. Anything that matches will be returned.- Parameters:
entry- An entry with an existing value()- Returns:
- True if this entry is part of the result set
-
-