1 | //===----------------------------------------------------------------------===// |
2 | // DuckDB |
3 | // |
4 | // duckdb/storage/compression/bitpacking.hpp |
5 | // |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #pragma once |
10 | |
11 | #include "duckdb/common/string_util.hpp" |
12 | |
13 | namespace duckdb { |
14 | |
15 | enum class BitpackingMode : uint8_t { |
16 | AUTO, |
17 | |
18 | CONSTANT, |
19 | CONSTANT_DELTA, |
20 | DELTA_FOR, |
21 | FOR |
22 | }; |
23 | |
24 | BitpackingMode BitpackingModeFromString(const string &str); |
25 | string BitpackingModeToString(const BitpackingMode &mode); |
26 | |
27 | } // namespace duckdb |
28 | |