Skip to content
Snippets Groups Projects
Commit bce33e96 authored by nguyentd's avatar nguyentd
Browse files

Ex2: OSN

parent 4769991f
No related branches found
No related tags found
No related merge requests found
dataset = LOAD '/sample-input/OSN/tw.txt' AS (id: long, fr: long);
dataset = LOAD './sample-input/OSN/tw.txt' AS (id: long, fr: long);
-- TODO: check if user IDs are valid (e.g. not null) and clean the dataset
good_data = FILTER dataset BY id is not null and fr is not null;
......@@ -17,7 +17,7 @@
-- find the outliers
outliers = FILTER friends BY followers<2 ;
STORE friends INTO './local-output/OSN/twc/';
STORE followings INTO './local-output/OSN/following/';
STORE outliers INTO './local-output/OSN/outliers/';
STORE friends INTO './local-output/OSN/twc/';
STORE friends INTO './sample-output/OSN/twc/';
STORE followings INTO './sample-output/OSN/following/';
STORE outliers INTO './sample-output/OSN/outliers/';
STORE friends INTO './sample-output/OSN/twc/';
......@@ -17,7 +17,7 @@
-- find the outliers
outliers = FILTER friends BY followers<2 ;
STORE friends INTO './local-output/OSN/twc/';
STORE followings INTO './local-output/OSN/following/';
STORE outliers INTO './local-output/OSN/outliers/';
STORE friends INTO './local-output/OSN/twc/';
STORE friends INTO './sample-output/OSN/twc/';
STORE followings INTO './sample-output/OSN/following/';
STORE outliers INTO './sample-output/OSN/outliers/';
STORE friends INTO './sample-output/OSN/twc/';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment