0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
LoadDataFlags.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; version 3 of the
9  * License.
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_LOADDATAFLAGS_H
23 #define HYPERTABLE_LOADDATAFLAGS_H
24 
25 namespace Hypertable { namespace LoadDataFlags {
26 
27  enum {
28  DUP_KEY_COLS = 0x0001,
29  NO_ESCAPE = 0x0002,
32  NO_LOG = 0x0010
33  };
34 
35  inline bool duplicate_key_columns(int flags) {
36  return (flags & DUP_KEY_COLS) == DUP_KEY_COLS;
37  }
38 
39  inline bool no_escape(int flags) {
40  return (flags & NO_ESCAPE) == NO_ESCAPE;
41  }
42 
43  inline bool ignore_unknown_cfs(int flags) {
45  }
46 
47  inline bool single_cell_format(int flags) {
48  return (flags & SINGLE_CELL_FORMAT) == SINGLE_CELL_FORMAT;
49  }
50 
51  inline bool no_log(int flags) {
52  return (flags & NO_LOG) == NO_LOG;
53  }
54 
55 } }
56 
57 
58 #endif // HYPERTABLE_LOADDATAFLAGS_H
bool ignore_unknown_cfs(int flags)
Definition: LoadDataFlags.h:43
bool no_log(int flags)
Definition: LoadDataFlags.h:51
bool no_escape(int flags)
Definition: LoadDataFlags.h:39
Hypertable definitions
bool duplicate_key_columns(int flags)
Definition: LoadDataFlags.h:35
bool single_cell_format(int flags)
Definition: LoadDataFlags.h:47