View Source erlfdb_iterator behaviour (erlfdb v0.3.4)
A generic iterator behaviour, useful for streaming results from the database.
Summary
Functions
Executes a handle_call on the iterator.
Identifies the module and the specific state of the iterator implementation.
Creates an iterator.
Progresses the iterator one step.
Runs all iterators to completion.
Runs the iterator to completion.
Stops the iterator.
Types
Callbacks
Functions
Executes a handle_call on the iterator.
Identifies the module and the specific state of the iterator implementation.
Creates an iterator.
-spec next(iterator()) -> {cont, [result()], iterator()} | {halt, [result()], iterator()} | {halt, iterator()}.
Progresses the iterator one step.
Runs all iterators to completion.
Caller must call stop/1 to terminate the iterators.
Runs the iterator to completion.
Returns the list of results and the state of the iterator.
Caller must call stop/1 to terminate the iterator.
-spec stop(iterator()) -> ok.
Stops the iterator.