-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtable1.thrift
60 lines (45 loc) · 1.05 KB
/
table1.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
typedef unsigned int uint32_t;
typedef unsigned long int uint64_t;
typedef unsigned TableID;
enum column_type{
int,
float,
double,
string,
}
struct Attribute{
string attrName;
column_type attrType;
unsigned index;
TableID table_id_;
bool unique;
}
struct ProjDescriptor{
}
struct SpineLock{
}
struct WRLock{
}
struct TableFileConnector{
}
struct TTableMeta {
1: string tableName,
2: vector<Attribute> attributes,
3: TableID table_id_,
4: vector<ProjDescriptor> projection_list_,
5: i64 row_number_,
6: bool has_deleted_tuples_,
7: map<int, map<int, vector<uint32_t>>> meta_len_,
8: map<int, map<int, vector<uint64_t>>> meta_start_pos_,
9: map<int, map<int, vector<uint64_t>>> file_len_,
10: int file_num_,
11: vector<vector<uint64_t>> logical_files_length_,
12: SpineLock update_lock_,
13: WRLock wr_lock_,
14: TableFileConnector* write_connector_ = NULL,
}
service Ginkgo {
list<TTableMeta> get_tables_meta;
TTableDescriptor get_table_descriptor(1: TSessionId session, 2: string table_name)
User get(1: string uid),
}