Package org.tinspin.index.rtree
Class Filter.UnionFilter
- java.lang.Object
-
- org.tinspin.index.rtree.Filter.UnionFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.tinspin.index.rtree.Filter
Filter.RectangleIntersectFilter, Filter.UnionFilter
-
-
Constructor Summary
Constructors Constructor Description UnionFilter(Filter filter1, Filter filter2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanintersects(double[] min, double[] max)Intersects is used for the tree nodes and should only check for intersection.booleanmatches(Index.BoxEntry<?> entry)This is used on the actual entries.Filter.UnionFilterunion(Filter anotherFilter)Chaining another filter.
-
-
-
Method Detail
-
intersects
public boolean intersects(double[] min, double[] max)Description copied from interface:FilterIntersects is used for the tree nodes and should only check for intersection.- Specified by:
intersectsin interfaceFilter- 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:FilterThis is used on the actual entries. Anything that matches will be returned.
-
union
public Filter.UnionFilter union(Filter anotherFilter)
Chaining another filter.- Parameters:
anotherFilter- the filter to merge- Returns:
- resulting merged filter
-
-