blob: b7677578f1e9059d156f98b3de64a9568538b6b1 [file] [log] [blame]
genia.likes.science@gmail.com1cf49ad2013-05-16 03:48:20 -07001$(function() {
genia.likes.science@gmail.com8dbf9dc2013-05-20 17:38:29 -07002
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.com1cf49ad2013-05-16 03:48:20 -070024});
genia.likes.science@gmail.com8dbf9dc2013-05-20 17:38:29 -070025
26// Bootstraps social data
27function bootstrap() {
28 var loc = window.location.pathname;
29 var dir = loc.substring(0, loc.lastIndexOf('/'));
30}