Package org.tinspin.index.rtree
Class RTreeIterator<T>
- java.lang.Object
-
- org.tinspin.index.rtree.RTreeIterator<T>
-
- All Implemented Interfaces:
Iterator<Index.BoxEntry<T>>,Index.BoxIterator<T>,Index.QueryIterator<Index.BoxEntry<T>>
public class RTreeIterator<T> extends Object implements Index.BoxIterator<T>
-
-
Constructor Summary
Constructors Constructor Description RTreeIterator(RTree<T> tree, double[] min, double[] max)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> RTreeIterator<T>createExactMatch(RTree<T> tree, double[] min, double[] max)booleanhasNext()RTreeEntry<T>next()Index.BoxIterator<T>reset(double[] min, double[] max)This method resets an iterator.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
createExactMatch
public static <T> RTreeIterator<T> createExactMatch(RTree<T> tree, double[] min, double[] max)
-
reset
public Index.BoxIterator<T> reset(double[] min, double[] max)
Description copied from interface:Index.QueryIteratorThis method resets an iterator. The arguments determin new iterator properties: - For Extent iterators, see e.g.PointMap.iterator(), both arguments must be `null`. - For point query iterators, see e.g.PointMultimap.queryExactPoint(double[]), the first argument is the new query point and the second argument must be `null`. - For window queries, see e.g.PointMap.query(double[], double[]), the arguments are the min/max corners of the new query window.- Specified by:
resetin interfaceIndex.QueryIterator<T>- Parameters:
min- point or `null`max- point or `null`- Returns:
- this iterator after reset.
-
next
public RTreeEntry<T> next()
-
-