Package org.tinspin.index.qthypercube
Class QRIterator<T>
- java.lang.Object
-
- org.tinspin.index.qthypercube.QRIterator<T>
-
- Type Parameters:
T- Value type.
- All Implemented Interfaces:
Iterator<Index.BoxEntry<T>>,Index.BoxIterator<T>,Index.QueryIterator<Index.BoxEntry<T>>
public class QRIterator<T> extends Object implements Index.BoxIterator<T>
Resetable query iterator.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Index.BoxEntry<T>next()Index.BoxIterator<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.BoxEntry<T> next()
-
reset
public Index.BoxIterator<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.
-
-