blob: 4dc9291b71a989ee87c052488c61031d1fbc5f4e [file] [log] [blame]
Steven Glenn Jacobs409c3e72016-09-14 11:32:13 -07001/*
2 * Description : Check the Plan used by a channel
3 * Expected Res : Success
4 * Date : Mar 2015
5 */
6
7drop dataverse channels if exists;
8create dataverse channels;
9use dataverse channels;
10
11
12create type TweetMessageTypeuuid as closed {
13 tweetid: uuid,
14 sender-location: point,
15 send-time: datetime,
16 referred-topics: {{ string }},
17 message-text: string,
18 countA: int32,
19 countB: int32
20}
21
22
23create dataset TweetMessageuuids(TweetMessageTypeuuid)
24primary key tweetid autogenerated;
25
26create function NearbyTweetsContainingText($location, $text) {
27 for $tweet in dataset TweetMessageuuids
28 let $circle := create-circle($location,30.0)
29 where contains($tweet.message-text,$text)
30 and spatial-intersect($tweet.sender-location, $location)
31 return $tweet.message-text
32};
33
34write output to nc1:"rttest/channel-create.adm";
35
36create repetitive channel nearbyTweetChannel using NearbyTweetsContainingText@2 period duration("PT10M");