Ditto 4.7.1
|
Represents the returned results when executing a DQL query, containing a QueryResultItem for each match. More...
#include <QueryResult.hpp>
Public Member Functions | |
size_t | item_count () const |
QueryResultItem | get_item (size_t index) const |
Returns the matching QueryResultItem. | |
std::vector< QueryResultItem > | items () const |
std::vector< DocumentId > | mutated_document_ids () const |
IDs of documents that were mutated by the DQL query. Empty array if no documents have been mutated. | |
Represents the returned results when executing a DQL query, containing a QueryResultItem for each match.
QueryResultItem ditto::QueryResult::get_item | ( | size_t | index | ) | const |
Returns the matching QueryResultItem.
std::out_of_range | when index exceeds the number of QueryResultItem. |
size_t ditto::QueryResult::item_count | ( | ) | const |
Return the number of QueryResultItem available.
std::vector< QueryResultItem > ditto::QueryResult::items | ( | ) | const |
Return all the available QueryResultItem
.
std::vector< DocumentId > ditto::QueryResult::mutated_document_ids | ( | ) | const |
IDs of documents that were mutated by the DQL query. Empty array if no documents have been mutated.
Important: The returned document IDs are not cached, make sure to call
this method once and keep the return value for as long as needed.