Package db
Interface DBLongIterator
-
- All Known Implementing Classes:
AddressIndexKeyIterator,AddressIndexPrimaryKeyIterator,AddressKeyIterator
public interface DBLongIteratorDBLongIteratorprovides the ability to iterate over long values within a table.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandelete()Delete the last record(s) associated with the last value read via the next or previous methods.booleanhasNext()Return true if a value is available in the forward direction.booleanhasPrevious()Return true if a value is available in the reverse directionlongnext()Return the next long value.longprevious()Return the previous long value.
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws java.io.IOExceptionReturn 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.IOExceptionReturn 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.IOExceptionReturn 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.IOExceptionDelete 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.
-
-