0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
UpdateContext.h
Go to the documentation of this file.
1 /* -*- c++ -*-
2  * Copyright (C) 2007-2015 Hypertable, Inc.
3  *
4  * This file is part of Hypertable.
5  *
6  * Hypertable is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 3
9  * of the License, or any later version.
10  *
11  * Hypertable is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  */
21 
22 #ifndef Hypertable_RangeServer_UpdateContext_h
23 #define Hypertable_RangeServer_UpdateContext_h
24 
27 
28 #include <AsyncComm/Clock.h>
29 
30 #include <vector>
31 
32 namespace Hypertable {
33 
36 
38  class UpdateContext {
39  public:
40 
44  UpdateContext(std::vector<UpdateRecTable *> &updates,
46  updates(updates), expire_time(xt) { }
47 
50  for (auto u : updates)
51  delete u;
52  }
53  std::vector<UpdateRecTable *> updates;
55  int64_t auto_revision;
58  int64_t last_revision;
59  uint32_t total_updates {};
60  uint32_t total_added {};
61  uint32_t total_syncs {};
62  uint64_t total_bytes_added {};
63  };
64 
66 
67 } // namespace Hypertable
68 
69 #endif // Hypertable_RangeServer_UpdateContext_h
std::vector< UpdateRecTable * > updates
Definition: UpdateContext.h:53
chrono::time_point< fast_clock > time_point
Definition: fast_clock.h:42
UpdateContext(std::vector< UpdateRecTable * > &updates, std::chrono::fast_clock::time_point xt)
Constructor.
Definition: UpdateContext.h:44
Describes portion of an update buffer rejected due to error.
Definition: UpdateRequest.h:42
A dynamic, resizable and reference counted memory buffer.
Definition: DynamicBuffer.h:42
Declaration of ClockT.
~UpdateContext()
Destructor.
Definition: UpdateContext.h:49
std::chrono::fast_clock::time_point expire_time
Definition: UpdateContext.h:54
Context record for update request passed into UpdatePipeline.
Definition: UpdateContext.h:38
Hypertable definitions
Declarations for UpdateRecRange.
Declarations for UpdateRecTable.