-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDay-1-Session-2-Notes.txt
80 lines (61 loc) · 2.57 KB
/
Day-1-Session-2-Notes.txt
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
70
71
72
73
74
75
76
77
78
79
80
Device_data
Truck Info=> EventHub>
Generating lot of data
Use case TruckTracking
TruckInfo(VechileId string
unique data, VechileType String(Car/Truck/Bus), (Light)sensor1 double(12.99-98.99) , sensor2 (Infra) (-12 to 12), sensor3 boolean (break_applied yes/no), speed in kmsph(0-200), location { longitude, latitude })
VechileId:38c825c7-6a37-46a9-81e2-fd921b4e227e
VechileType:Truck
Sensor 1:16.358908790393308
Sensor 2:10.933381688966634
Sensor 3:true
SpeedinKmsph :107
Location :14.496526,70.298627
{
"vehicleId": "38c825c7-6a37-46a9-81e2-fd921b4e227e",
"vehicleType": "Truck",
"sensor1" : 16.358908790393308,
"sensor2" : 10.933381688966634,
"sensor3" : true,
"speed" : 107,
"location" : { "lat": "14.496526", "lon": "70.298627"}
}
UseCase POS System
Order(orderId, date, amount, products: [product_info{product_code, name, price, qty}])
m-c02x7d7jjg5h:GenerateStreamData s0v00eo$ git init
Initialized empty Git repository in /Users/s0v00eo/demo-workspace/GenerateStreamData/.git/
m-c02x7d7jjg5h:GenerateStreamData s0v00eo$ git remote add origin https://github.com/sasikumarvenkat/GenerateStreamData.git
m-c02x7d7jjg5h:GenerateStreamData s0v00eo$ git status
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
pom.xml
src/
nothing added to commit but untracked files present (use "git add" to track)
m-c02x7d7jjg5h:GenerateStreamData s0v00eo$ git add .
m-c02x7d7jjg5h:GenerateStreamData s0v00eo$ git status
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: pom.xml
new file: src/com/demo/truck/data/GenrateTruckInfo.java
new file: src/com/demo/truck/data/GenreateRandomTruckInfoJson.java
new file: src/com/demo/truck/data/VehicleInfo.java
m-c02x7d7jjg5h:GenerateStreamData s0v00eo$ git commit -m "Sample Stream data"
[master (root-commit) eb8aeda] Sample Stream data
4 files changed, 258 insertions(+)
create mode 100644 pom.xml
create mode 100644 src/com/demo/truck/data/GenrateTruckInfo.java
create mode 100644 src/com/demo/truck/data/GenreateRandomTruckInfoJson.java
create mode 100644 src/com/demo/truck/data/VehicleInfo.java
m-c02x7d7jjg5h:GenerateStreamData s0v00eo$ git push origin master
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 12 threads
Compressing objects: 100% (7/7), done.
Writing objects: 100% (11/11), 2.66 KiB | 908.00 KiB/s, done.
Total 11 (delta 0), reused 0 (delta 0)
To https://github.com/sasikumarvenkat/GenerateStreamData.git
* [new branch] master -> master