forked from piotrbelina/superwebanalytics
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdata.thrift
69 lines (56 loc) · 1.08 KB
/
data.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
63
64
65
66
67
68
69
namespace java manning.bigdata.swa
namespace php Piotr
union PersonID {
1: string cookie;
2: i64 user_id;
}
union PageID {
1: string url;
}
struct Location {
1: optional string city;
2: optional string state;
3: optional string country;
}
enum GenderType {
MALE = 1,
FEMALE = 2
}
union PersonPropertyValue {
1: string full_name;
2: GenderType gender;
3: Location location;
}
struct PersonProperty {
1: required PersonID id;
2: required PersonPropertyValue property;
}
union PagePropertyValue {
1: i32 page_views;
}
struct PageProperty {
1: required PageID id;
2: required PagePropertyValue property;
}
struct EquivEdge {
1: required PersonID id1;
2: required PersonID id2;
}
struct PageViewEdge {
1: required PersonID person;
2: required PageID page;
3: required i64 nonce;
}
union DataUnit {
1: PersonProperty person_property;
2: PageProperty page_property;
3: EquivEdge equiv;
4: PageViewEdge page_view;
}
struct Pedigree {
1: required i32 true_as_of_secs;
}
struct Data {
1: required Pedigree pedigree;
2: required DataUnit dataunit;
}