scan
Creates an Iterable to traverse all key-value pairs in the LevelDB database. The sequence will start from the specified key, or from the first key if no key is specified. LevelDB sorts keys in lexicographic order.
The provided sequence inside the action lambda is lazily evaluated, and the underlying resources are automatically released after the lambda completes execution.
IMPORTANT: Do not store the sequence outside the lambda, as it will be closed automatically after the lambda completes execution.
See LevelDBReader.scan for more information.
Return
A CloseableSequence over key-value pairs, where each pair consists of a key and its associated value.
Parameters
Indicates whether checksums should be verified during iteration to ensure data integrity.
Indicates whether the cache should be populated during iteration, that is to cache in memory the data read from disk.
The key from which to start the iteration, default is null.
The action to be performed on the sequence of key-value pairs.