-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuery.thrift
More file actions
40 lines (35 loc) · 882 Bytes
/
Copy pathQuery.thrift
File metadata and controls
40 lines (35 loc) · 882 Bytes
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
namespace java com.dataluminosity.privacy.message
enum SensorType {
LOCATION,
GYROSCOPE,
ACCELEROMETER,
MAGNETOMETER,
PROXIMITY,
BRIGHTNESS,
SOUNDLEVEL,
BATTERYLEVEL,
WIFIDATAUSAGE,
CELLDATAUSAGE
}
enum MatchingType {
LOCATION_MATCHING, // range element value would be latitude,longitude,radius,description
NUMERICAL_MATCHING, // range element value would be 0,4
STRING_MATCHING // range element value would be google.com
}
struct QueryVector {
1: list<string> ranges
}
struct Query {
1: i64 analystId,
2: i64 queryId,
3: i64 queryStartTime,
4: i64 queryEndTime,
5: i64 epoch, //in milliseconds
6: SensorType sensorType,
7: MatchingType matchingType,
8: QueryVector queryVector,
9: double epsilon,
10: string flipOne,
11: string flipTwo,
12: i64 versionId
}