Ditto 4.0.2
Loading...
Searching...
No Matches
SingleDocumentLiveQueryEvent.hpp
1#ifndef _DITTO_SINGLE_DOCUMENT_LIVE_QUERY_EVENT_
2#define _DITTO_SINGLE_DOCUMENT_LIVE_QUERY_EVENT_
3
4#include "Document.hpp"
5
6#include <memory>
7#include <string>
8#include <vector>
9
10namespace ditto {
11
17 friend class PendingIDSpecificOperation;
18
20 std::shared_ptr<Document> old_document);
21
22public:
28
32 std::shared_ptr<Document> old_document;
33
40 static uint64_t hash(std::shared_ptr<Document> document);
41
50 static std::string hash_mnemonic(std::shared_ptr<Document> document);
51};
52
53} // namespace ditto
54
55#endif
These objects are returned when using Collection::find_by_id functionality.
Definition: PendingIDSpecificOperation.hpp:40
Provides information about a live query event relating to a single document live query.
Definition: SingleDocumentLiveQueryEvent.hpp:16
bool is_initial
Definition: SingleDocumentLiveQueryEvent.hpp:27
static uint64_t hash(std::shared_ptr< Document > document)
Returns a hash that represents the document.
Definition: SingleDocumentLiveQueryEvent.cpp:13
std::shared_ptr< Document > old_document
Definition: SingleDocumentLiveQueryEvent.hpp:32
static std::string hash_mnemonic(std::shared_ptr< Document > document)
Returns a pattern of words that together create a mnemonic, which represents the document.
Definition: SingleDocumentLiveQueryEvent.cpp:17