Package org.tinspin.index.qthypercube
Class QIterator2<T>
- java.lang.Object
-
- org.tinspin.index.qthypercube.QIterator2<T>
-
- Type Parameters:
T- Value type
- All Implemented Interfaces:
Iterator<Index.PointEntry<T>>,Index.PointIterator<T>,Index.QueryIterator<Index.PointEntry<T>>
public class QIterator2<T> extends Object implements Index.PointIterator<T>
Resettable query iterator.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Index.PointEntry<T>next()Index.PointIterator<T>reset(double[] min, double[] max)Reset the 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
-
next
public Index.PointEntry<T> next()
-
reset
public Index.PointIterator<T> reset(double[] min, double[] max)
Reset the iterator. This iterator can be reused in order to reduce load on the garbage collector.- Specified by:
resetin interfaceIndex.QueryIterator<T>- Parameters:
min- lower left corner of querymax- upper right corner of query- Returns:
- this.
-
-