Package db
Interface DBLongIterator
-
- All Known Implementing Classes:
AddressIndexKeyIterator
,AddressIndexPrimaryKeyIterator
,AddressKeyIterator
public interface DBLongIterator
DBLongIterator
provides the ability to iterate over long values within a table.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
delete()
Delete the last record(s) associated with the last value read via the next or previous methods.boolean
hasNext()
Return true if a value is available in the forward direction.boolean
hasPrevious()
Return true if a value is available in the reverse directionlong
next()
Return the next long value.long
previous()
Return the previous long value.
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws java.io.IOException
Return true if a value is available in the forward direction.- Throws:
java.io.IOException
- thrown if an IO error occurs
-
hasPrevious
boolean hasPrevious() throws java.io.IOException
Return true if a value is available in the reverse direction- Throws:
java.io.IOException
- thrown if an IO error occurs
-
next
long next() throws java.io.IOException
Return the next long value.- Throws:
java.io.IOException
- thrown if an IO error occursNoSuchElementException
- if the next value is not available.
-
previous
long previous() throws java.io.IOException
Return the previous long value.- Throws:
java.io.IOException
- thrown if an IO error occursNoSuchElementException
- if the previous value is not available.
-
delete
boolean delete() throws java.io.IOException
Delete the last record(s) associated with the last value read via the next or previous methods.- Returns:
- true if record(s) was successfully deleted.
- Throws:
java.io.IOException
- thrown if an IO error occurs.
-
-