|
2 | 2 | "paragraphs": [
|
3 | 3 | {
|
4 | 4 | "text": "%md \n### Streaming Approximation Code Examples\n[Redis HyperLogLog (HLL)](https://github.com/fluxcapacitor/pipeline/blob/master/myapps/streaming/src/main/scala/com/advancedspark/streaming/rating/approx/RedisHyperLogLog.scala)\n\n[Algebird HyperLogLog (HLL)](https://github.com/fluxcapacitor/pipeline/blob/master/myapps/streaming/src/main/scala/com/advancedspark/streaming/rating/approx/AlgebirdHyperLogLog.scala)\n\n[Algebird CountMin Sketch TopK (CMS)](https://github.com/fluxcapacitor/pipeline/blob/master/myapps/streaming/src/main/scala/com/advancedspark/streaming/rating/approx/AlgebirdCountMinSketchTopK.scala)",
|
5 |
| - "dateUpdated": "Jan 16, 2016 3:49:35 PM", |
| 5 | + "dateUpdated": "Jan 29, 2016 4:24:20 AM", |
6 | 6 | "config": {
|
7 | 7 | "colWidth": 12.0,
|
8 | 8 | "graph": {
|
|
16 | 16 | },
|
17 | 17 | "enabled": true,
|
18 | 18 | "editorMode": "ace/mode/markdown",
|
19 |
| - "editorHide": true |
| 19 | + "editorHide": true, |
| 20 | + "tableHide": false |
20 | 21 | },
|
21 | 22 | "settings": {
|
22 | 23 | "params": {},
|
|
30 | 31 | "msg": "\u003ch3\u003eStreaming Approximation Code Examples\u003c/h3\u003e\n\u003cp\u003e\u003ca href\u003d\"https://github.com/fluxcapacitor/pipeline/blob/master/myapps/streaming/src/main/scala/com/advancedspark/streaming/rating/approx/RedisHyperLogLog.scala\"\u003eRedis HyperLogLog (HLL)\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003ca href\u003d\"https://github.com/fluxcapacitor/pipeline/blob/master/myapps/streaming/src/main/scala/com/advancedspark/streaming/rating/approx/AlgebirdHyperLogLog.scala\"\u003eAlgebird HyperLogLog (HLL)\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003ca href\u003d\"https://github.com/fluxcapacitor/pipeline/blob/master/myapps/streaming/src/main/scala/com/advancedspark/streaming/rating/approx/AlgebirdCountMinSketchTopK.scala\"\u003eAlgebird CountMin Sketch TopK (CMS)\u003c/a\u003e\u003c/p\u003e\n"
|
31 | 32 | },
|
32 | 33 | "dateCreated": "Nov 23, 2015 4:48:23 PM",
|
33 |
| - "dateStarted": "Jan 16, 2016 3:49:27 PM", |
34 |
| - "dateFinished": "Jan 16, 2016 3:49:27 PM", |
| 34 | + "dateStarted": "Jan 29, 2016 4:01:44 AM", |
| 35 | + "dateFinished": "Jan 29, 2016 4:01:44 AM", |
35 | 36 | "status": "FINISHED",
|
36 | 37 | "progressUpdateIntervalMs": 500
|
37 | 38 | },
|
38 | 39 | {
|
39 |
| - "title": "Retrieve from Redis", |
40 |
| - "text": "import redis.clients.jedis.Jedis\n\nval itemId \u003d 7 // Spark\n\nval jedis \u003d new Jedis(\"127.0.0.1\", 6379)\n\nval exactNumRatingsForItemId \u003d jedis.get(s\"\"\"exact-rating-count:${itemId}\"\"\")\nval exactNumDistinctUsersWhoRatedItemId \u003d jedis.scard(s\"\"\"exact-distinct-user-rating-count:${itemId}\"\"\")\nval approxNumDistinctUsersWhoRatedItemId \u003d jedis.pfcount(s\"\"\"approx-distinct-user-rating-count:${itemId}\"\"\")", |
41 |
| - "dateUpdated": "Jan 19, 2016 9:08:35 PM", |
| 40 | + "title": "Approximate HyperLogLog (Redis)", |
| 41 | + "text": "import redis.clients.jedis.Jedis\n\nval itemId \u003d 1 // Spark\n\nval jedis \u003d new Jedis(\"127.0.0.1\", 6379)\n\nval approxNumDistinctUsersWhoRatedItemId \u003d jedis.pfcount(s\"\"\"approx-distinct-user-rating-count:${itemId}\"\"\")", |
| 42 | + "dateUpdated": "Jan 29, 2016 4:24:20 AM", |
42 | 43 | "config": {
|
43 | 44 | "colWidth": 12.0,
|
44 | 45 | "graph": {
|
|
52 | 53 | },
|
53 | 54 | "editorMode": "ace/mode/scala",
|
54 | 55 | "enabled": true,
|
55 |
| - "title": true |
| 56 | + "title": true, |
| 57 | + "tableHide": false |
56 | 58 | },
|
57 | 59 | "settings": {
|
58 | 60 | "params": {},
|
|
61 | 63 | "jobName": "paragraph_1448297306376_418047956",
|
62 | 64 | "id": "20151123-164826_892246958",
|
63 | 65 | "result": {
|
64 |
| - "code": "ERROR", |
| 66 | + "code": "SUCCESS", |
65 | 67 | "type": "TEXT",
|
66 |
| - "msg": "File name too long" |
| 68 | + "msg": "import redis.clients.jedis.Jedis\nitemId: Int \u003d 1\njedis: redis.clients.jedis.Jedis \u003d redis.clients.jedis.Jedis@29db7d87\napproxNumDistinctUsersWhoRatedItemId: Long \u003d 6\n" |
67 | 69 | },
|
68 | 70 | "dateCreated": "Nov 23, 2015 4:48:26 PM",
|
69 |
| - "dateStarted": "Jan 16, 2016 3:49:39 PM", |
70 |
| - "dateFinished": "Jan 16, 2016 3:49:40 PM", |
71 |
| - "status": "ERROR", |
| 71 | + "dateStarted": "Jan 29, 2016 4:23:12 AM", |
| 72 | + "dateFinished": "Jan 29, 2016 4:23:13 AM", |
| 73 | + "status": "FINISHED", |
72 | 74 | "progressUpdateIntervalMs": 500
|
73 | 75 | },
|
74 | 76 | {
|
75 |
| - "dateUpdated": "Jan 16, 2016 5:31:31 AM", |
| 77 | + "title": "Exact Count (Redis)", |
| 78 | + "text": "val exactNumRatingsForItemId \u003d jedis.get(s\"\"\"exact-rating-count:${itemId}\"\"\")\nval exactNumDistinctUsersWhoRatedItemId \u003d jedis.scard(s\"\"\"exact-distinct-user-rating-count:${itemId}\"\"\")", |
| 79 | + "dateUpdated": "Jan 29, 2016 4:24:20 AM", |
76 | 80 | "config": {
|
77 | 81 | "colWidth": 12.0,
|
78 | 82 | "graph": {
|
|
85 | 89 | "scatter": {}
|
86 | 90 | },
|
87 | 91 | "enabled": true,
|
88 |
| - "editorMode": "ace/mode/scala" |
| 92 | + "editorMode": "ace/mode/scala", |
| 93 | + "editorHide": false, |
| 94 | + "title": true, |
| 95 | + "tableHide": false |
89 | 96 | },
|
90 | 97 | "settings": {
|
91 | 98 | "params": {},
|
|
95 | 102 | "id": "20160115-050946_110716227",
|
96 | 103 | "result": {
|
97 | 104 | "code": "SUCCESS",
|
98 |
| - "type": "TEXT" |
| 105 | + "type": "TEXT", |
| 106 | + "msg": "exactNumRatingsForItemId: String \u003d 7\nexactNumDistinctUsersWhoRatedItemId: Long \u003d 5\n" |
99 | 107 | },
|
100 | 108 | "dateCreated": "Jan 15, 2016 5:09:46 AM",
|
101 |
| - "dateStarted": "Jan 16, 2016 5:31:32 AM", |
102 |
| - "dateFinished": "Jan 16, 2016 5:31:32 AM", |
| 109 | + "dateStarted": "Jan 29, 2016 4:23:15 AM", |
| 110 | + "dateFinished": "Jan 29, 2016 4:23:16 AM", |
103 | 111 | "status": "FINISHED",
|
104 | 112 | "progressUpdateIntervalMs": 500
|
| 113 | + }, |
| 114 | + { |
| 115 | + "dateUpdated": "Jan 29, 2016 4:24:20 AM", |
| 116 | + "config": { |
| 117 | + "colWidth": 12.0, |
| 118 | + "graph": { |
| 119 | + "mode": "table", |
| 120 | + "height": 300.0, |
| 121 | + "optionOpen": false, |
| 122 | + "keys": [], |
| 123 | + "values": [], |
| 124 | + "groups": [], |
| 125 | + "scatter": {} |
| 126 | + }, |
| 127 | + "enabled": true, |
| 128 | + "editorMode": "ace/mode/scala", |
| 129 | + "tableHide": false |
| 130 | + }, |
| 131 | + "settings": { |
| 132 | + "params": {}, |
| 133 | + "forms": {} |
| 134 | + }, |
| 135 | + "jobName": "paragraph_1454040082116_986786514", |
| 136 | + "id": "20160129-040122_1823942882", |
| 137 | + "dateCreated": "Jan 29, 2016 4:01:22 AM", |
| 138 | + "status": "READY", |
| 139 | + "errorMessage": "", |
| 140 | + "progressUpdateIntervalMs": 500 |
105 | 141 | }
|
106 | 142 | ],
|
107 |
| - "name": "Live Recs/02: Approximate Counts (Redis + Algebird)", |
| 143 | + "name": "Live Recs/02: Approximate HyperLogLog Count (Redis)", |
108 | 144 | "id": "2B42HQF6Z",
|
109 | 145 | "angularObjects": {
|
110 | 146 | "2ARR8UZDJ": [],
|
|
0 commit comments