0.9.8.10
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
home
doug
src
hypertable
src
cc
Hypertable
Lib
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,
30
IGNORE_UNKNOWN_COLUMNS
= 0x0004,
31
SINGLE_CELL_FORMAT
= 0x0008,
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) {
44
return
(flags &
IGNORE_UNKNOWN_COLUMNS
) ==
IGNORE_UNKNOWN_COLUMNS
;
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
Hypertable::LoadDataFlags::ignore_unknown_cfs
bool ignore_unknown_cfs(int flags)
Definition:
LoadDataFlags.h:43
Hypertable::LoadDataFlags::NO_LOG
Definition:
LoadDataFlags.h:32
Hypertable::LoadDataFlags::NO_ESCAPE
Definition:
LoadDataFlags.h:29
Hypertable::LoadDataFlags::no_log
bool no_log(int flags)
Definition:
LoadDataFlags.h:51
Hypertable::LoadDataFlags::no_escape
bool no_escape(int flags)
Definition:
LoadDataFlags.h:39
Hypertable::LoadDataFlags::DUP_KEY_COLS
Definition:
LoadDataFlags.h:28
Hypertable
Hypertable definitions
Definition:
ApplicationHandler.h:36
Hypertable::LoadDataFlags::duplicate_key_columns
bool duplicate_key_columns(int flags)
Definition:
LoadDataFlags.h:35
Hypertable::LoadDataFlags::single_cell_format
bool single_cell_format(int flags)
Definition:
LoadDataFlags.h:47
Hypertable::LoadDataFlags::SINGLE_CELL_FORMAT
Definition:
LoadDataFlags.h:31
Hypertable::LoadDataFlags::IGNORE_UNKNOWN_COLUMNS
Definition:
LoadDataFlags.h:30
Generated on Tue Dec 22 2015 18:43:11 for Hypertable by
1.8.8