asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject asterixdb git commit: Feed tutorial revise.
Date Mon, 10 Oct 2016 17:12:47 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master e3c9f2738 -> 33af12dff


Feed tutorial revise.

1. Fix 1352.
2. Revise the twitter feed part to work with the new tweet parser.

Change-Id: I110e2225a3036109bf58a9ef529407de955335ab
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1152
Reviewed-by: Ian Maxon <imaxon@apache.org>
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>


Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/33af12df
Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/33af12df
Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/33af12df

Branch: refs/heads/master
Commit: 33af12dff5dee5207715d32ef7311be5f3a34055
Parents: e3c9f27
Author: Xikui Wang <xkkwww@gmail.com>
Authored: Thu Sep 22 17:14:43 2016 -0700
Committer: Ian Maxon <imaxon@apache.org>
Committed: Mon Oct 10 10:11:51 2016 -0700

----------------------------------------------------------------------
 .../src/site/markdown/feeds/tutorial.md         | 27 +++++++++-----------
 1 file changed, 12 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/33af12df/asterixdb/asterix-doc/src/site/markdown/feeds/tutorial.md
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-doc/src/site/markdown/feeds/tutorial.md b/asterixdb/asterix-doc/src/site/markdown/feeds/tutorial.md
index 39e04b1..fb06a92 100644
--- a/asterixdb/asterix-doc/src/site/markdown/feeds/tutorial.md
+++ b/asterixdb/asterix-doc/src/site/markdown/feeds/tutorial.md
@@ -61,23 +61,18 @@ As a pre-requisite, we must define a Tweet using the AsterixDB Data Model
(ADM)
         create dataverse feeds;
         use dataverse feeds;
 
-        create type TwitterUser if not exists as open{
-            screen_name: string,
-            language: string,
-            friends_count: int32,
-            status_count: int32,
-            name: string,
-            followers_count: int32
-        };
-        create type Tweet if not exists as open{
-            id: string,
-            user: TwitterUser,
-            latitude:double,
-            longitude:double,
-            created_at:string,
-            message_text:string
+        create type TwitterUser as closed {
+                screen_name: string,
+                lang: string,
+                friends_count: int32,
+                statuses_count: int32
         };
 
+        create type Tweet as open {
+          id: int64,
+          user: TwitterUser
+        }
+
         create dataset Tweets (Tweet)
         primary key id;
 
@@ -103,6 +98,7 @@ Given below is an example AQL statement that creates a feed called "TwitterFeed"
 
         create feed TwitterFeed if not exists using "push_twitter"
         (("type-name"="Tweet"),
+         ("format"="twitter-status"),
          ("consumer.key"="************"),
          ("consumer.secret"="**************"),
          ("access.token"="**********"),
@@ -185,6 +181,7 @@ Next, we define an RSS feed using our built-in adaptor "rss_feed".
         create feed my_feed using
         rss_feed (
            ("type-name"="Rss"),
+           ("format"="rss"),
            ("url"="http://rss.cnn.com/rss/edition.rss")
         );
 


Mime
View raw message