0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ThriftHelper.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 Hypertable. If not, see <http://www.gnu.org/licenses/>
18  */
19 
20 #ifndef Hypertable_ThriftBroker_ThriftHelper_h
21 #define Hypertable_ThriftBroker_ThriftHelper_h
22 
23 #include <iosfwd>
24 #include "gen-cpp/HqlService.h"
25 
26 namespace Hypertable { namespace ThriftGen {
27 
28 std::ostream &operator<<(std::ostream &, const CellAsArray &);
29 
30 // These are mostly for test code and not efficient for production.
31 Cell
32 make_cell(const char *row, const char *cf, const char *cq,
33  const std::string &value, int64_t ts, int64_t rev, KeyFlag::type flag);
34 
35 Cell
36 make_cell(const char *row, const char *cf, const char *cq = 0,
37  const std::string &value = std::string(), const char *ts = 0,
38  const char *rev = 0, KeyFlag::type flag = KeyFlag::INSERT);
39 
40 }}
41 
42 #endif // Hypertable_ThriftBroker_ThriftHelper_h
std::ostream & operator<<(std::ostream &out, const CellAsArray &cell)
Definition: ThriftHelper.cc:30
Cell make_cell(const char *row, const char *cf, const char *cq, const std::string &value, int64_t ts, int64_t rev, KeyFlag::type flag)
Definition: ThriftHelper.cc:63
Hypertable definitions