![]() |
Jazz 1.25.+
|
RowSelection: An iterator over the rows of a Space. More...
#include <space.h>
Private Member Functions | |
RowSelection (pChar query, pSpace p_space) | |
The constructor for a RowSelection. | |
virtual bool | restart () |
Restart the iterator. | |
virtual RowNumber | next () |
Get the next row. | |
Private Attributes | |
bool | is_valid = false |
True if the iterator was created by a successful query. | |
RowSelection: An iterator over the rows of a Space.
This is an abstract class that provides the interface of an iterator over rows. The where() method of a Space returns a RowSelection descendant that is compatible with this interface.
The constructor for a RowSelection.
query | A query string that is understood by the descendant. In Bop, this is the content of a WHERE clause with a syntax that depends on how the Space is indexed (Time, categorical, Embedding storage, ...). |
p_space | The Space that created the object is required because the descendant may need to call .get_index_data() or other methods. |
|
inlineprivatevirtual |
Restart the iterator.
|
inlineprivatevirtual |
Get the next row.