Class CellIterator
java.lang.Object
org.apache.lucene.spatial.prefix.tree.CellIterator
- Direct Known Subclasses:
NumberRangePrefixTree.NRCell
,PackedQuadPrefixTree.PrefixTreeIterator
An Iterator of SpatialPrefixTree Cells. The order is always sorted without duplicates.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnext()
Gets the next cell that is >=fromCell
, compared using non-leaf bytes.void
remove()
This prevents sub-cells (those underneath the current cell) from being iterated to, if applicable, otherwise a NO-OP.thisCell()
Returns the cell last returned fromnext()
.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, hasNext
-
Field Details
-
nextCell
-
thisCell
-
-
Constructor Details
-
CellIterator
public CellIterator()
-
-
Method Details
-
thisCell
Returns the cell last returned fromnext()
. It's cleared by hasNext(). -
nextFrom
Gets the next cell that is >=fromCell
, compared using non-leaf bytes. If it returns null then the iterator is exhausted. -
remove
public void remove()This prevents sub-cells (those underneath the current cell) from being iterated to, if applicable, otherwise a NO-OP. -
next
-