forked from heavyai/heavydb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.thrift
63 lines (57 loc) · 806 Bytes
/
common.thrift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
namespace java ai.heavy.thrift.server
namespace py heavydb.common
enum TDeviceType {
CPU,
GPU
}
enum TDatumType {
SMALLINT,
INT,
BIGINT,
FLOAT,
DECIMAL,
DOUBLE,
STR,
TIME,
TIMESTAMP,
DATE,
BOOL,
INTERVAL_DAY_TIME,
INTERVAL_YEAR_MONTH,
POINT,
LINESTRING,
POLYGON,
MULTIPOLYGON,
TINYINT,
GEOMETRY,
GEOGRAPHY,
MULTILINESTRING,
MULTIPOINT
}
enum TEncodingType {
NONE,
FIXED,
RL,
DIFF,
DICT,
SPARSE,
GEOINT,
DATE_IN_DAYS,
ARRAY,
ARRAY_DICT
}
struct TStringDictKey {
1: i32 db_id;
2: i32 dict_id;
}
struct TTypeInfo {
1: TDatumType type;
4: TEncodingType encoding;
2: bool nullable;
3: bool is_array;
5: i32 precision;
6: i32 scale;
7: i32 comp_param;
8: optional i32 size=-1;
9: optional TStringDictKey dict_key;
}