Package com.google.common.geometry
Class S2CellIndex.NonEmptyRangeIterator
java.lang.Object
com.google.common.geometry.S2CellIndex.RangeIterator
com.google.common.geometry.S2CellIndex.NonEmptyRangeIterator
- Enclosing class:
S2CellIndex
As
S2CellIndex.RangeIterator
but only visits range nodes that overlap (cellId, label) pairs.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
Positions this iterator at the first range of leaf cells (if any).void
next()
Advances the iterator to the next range of leaf cells.boolean
prev()
Returns false if the iterator was already positioned at the beginning, otherwise positions the iterator at the previous entry and returns true.void
Positions the iterator at the range containing "target".
-
Constructor Details
-
NonEmptyRangeIterator
public NonEmptyRangeIterator()
-
-
Method Details
-
begin
public void begin()Description copied from class:S2CellIndex.RangeIterator
Positions this iterator at the first range of leaf cells (if any).- Overrides:
begin
in classS2CellIndex.RangeIterator
-
next
public void next()Description copied from class:S2CellIndex.RangeIterator
Advances the iterator to the next range of leaf cells.- Overrides:
next
in classS2CellIndex.RangeIterator
-
prev
public boolean prev()Description copied from class:S2CellIndex.RangeIterator
Returns false if the iterator was already positioned at the beginning, otherwise positions the iterator at the previous entry and returns true.- Overrides:
prev
in classS2CellIndex.RangeIterator
-
seek
Description copied from class:S2CellIndex.RangeIterator
Positions the iterator at the range containing "target". Such a range exists as long as the target is a valid leaf cell.- Overrides:
seek
in classS2CellIndex.RangeIterator
- Parameters:
target
- a valid leaf (level 30) cell to seek to
-