BlessScanIterator
final class BlessScanIterator implements Iterator (View source)
Lazily iterates the keys of BLESS SCAN, fetching one page at a time. Rewinding
restarts the scan once a key has been consumed.
Methods
Returns the current key name, or null when the scan has finished.
Returns the position of the current key, or null when the scan has finished.
Moves to the next key.
Restarts the scan if any keys have been consumed.
Returns whether there is a current key, fetching pages as needed.
Details
mixed
current()
Returns the current key name, or null when the scan has finished.
mixed
key()
Returns the position of the current key, or null when the scan has finished.
void
next()
Moves to the next key.
void
rewind()
Restarts the scan if any keys have been consumed.
bool
valid()
Returns whether there is a current key, fetching pages as needed.