genia.likes.science@gmail.com | 1cf49ad | 2013-05-16 03:48:20 -0700 | [diff] [blame] | 1 | $(function() { |
genia.likes.science@gmail.com | 8dbf9dc | 2013-05-20 17:38:29 -0700 | [diff] [blame^] | 2 | |
| 3 | // Exact-Match Lookup |
| 4 | $('#run0a').click(function () { |
| 5 | var a = new AsterixSDK(); |
| 6 | var q = new FLWOGRExpression() |
| 7 | .use_dataverse("Twitter") |
| 8 | .bind(new ForClause("user", new AsterixClause().set("dataset FacebookUsers"))) |
| 9 | .bind(new WhereClause(new BooleanExpression("=", "$user.id", 8))) |
| 10 | .return({ "$user" : "$user" }); |
| 11 | alert(q.clauses); |
| 12 | }); |
| 13 | |
| 14 | // Range Scan |
| 15 | $('#run0b').click(function () { |
| 16 | alert("0b"); |
| 17 | }); |
| 18 | |
| 19 | // Other Query Filter |
| 20 | $('#run1').click(function () { |
| 21 | alert("1"); |
| 22 | }); |
| 23 | |
genia.likes.science@gmail.com | 1cf49ad | 2013-05-16 03:48:20 -0700 | [diff] [blame] | 24 | }); |
genia.likes.science@gmail.com | 8dbf9dc | 2013-05-20 17:38:29 -0700 | [diff] [blame^] | 25 | |
| 26 | // Bootstraps social data |
| 27 | function bootstrap() { |
| 28 | var loc = window.location.pathname; |
| 29 | var dir = loc.substring(0, loc.lastIndexOf('/')); |
| 30 | } |