blob: 61e10732c6fc0a65449a28079a1f51e27974c59a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#pragma once
#include "Key.hpp"
#include "types.hpp"
#include "DataView.hpp"
namespace odhtdb
{
class Group;
struct StagedCreateObject
{
Key key;
Group *primaryAdminGroup;
u64 timestamp; // In microseconds
StagedCreateObject() : key(), primaryAdminGroup(nullptr), timestamp(0) {}
StagedCreateObject(const Key &_key, Group *_primaryAdminGroup, u64 _timestamp) :
key(_key), primaryAdminGroup(_primaryAdminGroup), timestamp(_timestamp)
{
}
};
struct StagedAddObject
{
Key key;
DataView data;
u64 timestamp; // In microseconds
StagedAddObject() : key(), data(), timestamp(0) {}
StagedAddObject(const Key &_key, const DataView &_data, u64 _timestamp) :
key(_key), data(_data), timestamp(_timestamp)
{
}
};
}
|