Package org.tinspin.index.util
Class PointIteratorWrapper<E>
- java.lang.Object
-
- org.tinspin.index.util.PointIteratorWrapper<E>
-
- All Implemented Interfaces:
Iterator<Index.PointEntry<E>>,Index.PointIterator<E>,Index.QueryIterator<Index.PointEntry<E>>
public class PointIteratorWrapper<E> extends Object implements Index.PointIterator<E>
-
-
Constructor Summary
Constructors Constructor Description PointIteratorWrapper(double[] min, double[] max, BiFunction<double[],double[],Iterator<Index.PointEntry<E>>> f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Index.PointEntry<E>next()Index.PointIterator<E>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
-
-
-
-
Constructor Detail
-
PointIteratorWrapper
public PointIteratorWrapper(double[] min, double[] max, BiFunction<double[],double[],Iterator<Index.PointEntry<E>>> f)
-
-
Method Detail
-
next
public Index.PointEntry<E> next()
-
reset
public Index.PointIterator<E> 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<E>- Parameters:
min- point or `null`max- point or `null`- Returns:
- this iterator after reset.
-
-