comparison OrthancServer/Sources/Database/IDatabaseWrapper.h @ 5757:5463c3ae3235 large-queries

refactored extended /changes
author Alain Mazy <am@orthanc.team>
date Thu, 05 Sep 2024 18:21:56 +0200
parents 3765085693e5
children ca06dde85358
comparison
equal deleted inserted replaced
5663:3765085693e5 5757:5463c3ae3235
50 bool hasRevisionsSupport_; 50 bool hasRevisionsSupport_;
51 bool hasLabelsSupport_; 51 bool hasLabelsSupport_;
52 bool hasAtomicIncrementGlobalProperty_; 52 bool hasAtomicIncrementGlobalProperty_;
53 bool hasUpdateAndGetStatistics_; 53 bool hasUpdateAndGetStatistics_;
54 bool hasMeasureLatency_; 54 bool hasMeasureLatency_;
55 bool hasExtendedApiV1_; 55 bool hasExtendedChanges_;
56 56
57 public: 57 public:
58 Capabilities() : 58 Capabilities() :
59 hasFlushToDisk_(false), 59 hasFlushToDisk_(false),
60 hasRevisionsSupport_(false), 60 hasRevisionsSupport_(false),
61 hasLabelsSupport_(false), 61 hasLabelsSupport_(false),
62 hasAtomicIncrementGlobalProperty_(false), 62 hasAtomicIncrementGlobalProperty_(false),
63 hasUpdateAndGetStatistics_(false), 63 hasUpdateAndGetStatistics_(false),
64 hasMeasureLatency_(false), 64 hasMeasureLatency_(false),
65 hasExtendedApiV1_(false) 65 hasExtendedChanges_(false)
66 { 66 {
67 } 67 }
68 68
69 void SetFlushToDisk(bool value) 69 void SetFlushToDisk(bool value)
70 { 70 {
94 bool HasLabelsSupport() const 94 bool HasLabelsSupport() const
95 { 95 {
96 return hasLabelsSupport_; 96 return hasLabelsSupport_;
97 } 97 }
98 98
99 void SetHasExtendedApiV1(bool value) 99 void SetHasExtendedChanges(bool value)
100 { 100 {
101 hasExtendedApiV1_ = value; 101 hasExtendedChanges_ = value;
102 } 102 }
103 103
104 bool HasExtendedApiV1() const 104 bool HasExtendedChanges() const
105 { 105 {
106 return hasExtendedApiV1_; 106 return hasExtendedChanges_;
107 } 107 }
108 108
109 void SetAtomicIncrementGlobalProperty(bool value) 109 void SetAtomicIncrementGlobalProperty(bool value)
110 { 110 {
111 hasAtomicIncrementGlobalProperty_ = value; 111 hasAtomicIncrementGlobalProperty_ = value;
364 int64_t& instancesCount, 364 int64_t& instancesCount,
365 int64_t& compressedSize, 365 int64_t& compressedSize,
366 int64_t& uncompressedSize) = 0; 366 int64_t& uncompressedSize) = 0;
367 367
368 // New in Orthanc 1.13.0 368 // New in Orthanc 1.13.0
369 virtual void GetChanges2(std::list<ServerIndexChange>& target /*out*/, 369 virtual void GetChangesExtended(std::list<ServerIndexChange>& target /*out*/,
370 bool& done /*out*/, 370 bool& done /*out*/,
371 int64_t since, 371 int64_t since,
372 int64_t to, 372 int64_t to,
373 uint32_t limit, 373 uint32_t limit,
374 ChangeType filterType) = 0; 374 ChangeType filterType) = 0;
375 375
376 }; 376 };
377 377
378 378
379 virtual ~IDatabaseWrapper() 379 virtual ~IDatabaseWrapper()