asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xikui Wang (Code Review)" <do-not-re...@asterixdb.incubator.apache.org>
Subject Change in asterixdb[master]: Feed tutorial revise.
Date Wed, 07 Sep 2016 04:42:52 GMT
Xikui Wang has uploaded a new change for review.

  https://asterix-gerrit.ics.uci.edu/1152

Change subject: Feed tutorial revise.
......................................................................

Feed tutorial revise.

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

Change-Id: I110e2225a3036109bf58a9ef529407de955335ab
---
M asterixdb/asterix-doc/src/site/markdown/feeds/tutorial.md
1 file changed, 13 insertions(+), 15 deletions(-)


  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/52/1152/1

diff --git a/asterixdb/asterix-doc/src/site/markdown/feeds/tutorial.md b/asterixdb/asterix-doc/src/site/markdown/feeds/tutorial.md
index 39e04b1..54bfaa5 100644
--- a/asterixdb/asterix-doc/src/site/markdown/feeds/tutorial.md
+++ b/asterixdb/asterix-doc/src/site/markdown/feeds/tutorial.md
@@ -61,22 +61,18 @@
         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 TwitterUser as closed{
+                screen_name: string,
+                lang: string,
+                friends_count: int32,
+                statuses_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 Tweet as open
+        {
+          id: int64,
+          user: TwitterUser
+        }
 
         create dataset Tweets (Tweet)
         primary key id;
@@ -103,6 +99,7 @@
 
         create feed TwitterFeed if not exists using "push_twitter"
         (("type-name"="Tweet"),
+         ("format"="twitter-status"),
          ("consumer.key"="************"),
          ("consumer.secret"="**************"),
          ("access.token"="**********"),
@@ -185,6 +182,7 @@
         create feed my_feed using
         rss_feed (
            ("type-name"="Rss"),
+           ("format"="rss"),
            ("url"="http://rss.cnn.com/rss/edition.rss")
         );
 

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1152
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I110e2225a3036109bf58a9ef529407de955335ab
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Xikui Wang <xkkwww@gmail.com>

Mime
View raw message