Provides information about a live query event relating to a single document live query.
More...
#include <SingleDocumentLiveQueryEvent.hpp>
|
static uint64_t | hash (std::shared_ptr< Document > document) |
| Returns a hash that represents the document.
|
|
static std::string | hash_mnemonic (std::shared_ptr< Document > document) |
| Returns a pattern of words that together create a mnemonic, which represents the document.
|
|
Provides information about a live query event relating to a single document live query.
◆ hash()
uint64_t ditto::SingleDocumentLiveQueryEvent::hash |
( |
std::shared_ptr< Document > |
document | ) |
|
|
static |
Returns a hash that represents the document.
- Parameters
-
[in] | document | the document delivered alongside the live query event. |
- Returns
- a hash that represents document.
◆ hash_mnemonic()
std::string ditto::SingleDocumentLiveQueryEvent::hash_mnemonic |
( |
std::shared_ptr< Document > |
document | ) |
|
|
static |
Returns a pattern of words that together create a mnemonic, which represents the document.
- Parameters
-
[in] | document | the document delivered alongside the live query event. |
- Returns
- a pattern of words that together create a mnemonic, which represents the document.
◆ is_initial
bool ditto::SingleDocumentLiveQueryEvent::is_initial |
Indicates whether or not this is the first event to be delivered for this document as part of its corresponding LiveQuery
.
◆ old_document
std::shared_ptr<Document> ditto::SingleDocumentLiveQueryEvent::old_document |
The representation of the document before the latest update.