Package db
Interface DBLongIterator
- All Known Implementing Classes:
AddressIndexKeyIterator
,AddressKeyIterator
public interface DBLongIterator
DBLongIterator
provides the ability to iterate over
long values within a table.-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
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 Details
-
hasNext
Return true if a value is available in the forward direction.- Throws:
IOException
- thrown if an IO error occurs
-
hasPrevious
Return true if a value is available in the reverse direction- Throws:
IOException
- thrown if an IO error occurs
-
next
Return the next long value.- Throws:
IOException
- thrown if an IO error occursNoSuchElementException
- if the next value is not available.
-
previous
Return the previous long value.- Throws:
IOException
- thrown if an IO error occursNoSuchElementException
- if the previous value is not available.
-
delete
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:
IOException
- thrown if an IO error occurs.
-