Interface Scanner<R>

All Superinterfaces:
AutoCloseable, Closeable, Spliterator<R>
All Known Subinterfaces:
Updater<R>

public interface Scanner<R> extends Spliterator<R>, Closeable
Support for scanning through all rows in a table. Any exception thrown when acting upon a scanner automatically closes it.

Scanner instances can only be safely used by one thread at a time, and they must be closed when no longer needed. Instances can be exchanged by threads, as long as a happens-before relationship is established. Without proper exclusion, multiple threads interacting with a Scanner instance may cause database corruption.

See Also: