Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pig
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
leroyq
Pig
Commits
786209bd
Commit
786209bd
authored
Nov 24, 2015
by
leroyq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e1 e2
parent
7fa9b813
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
59 additions
and
3 deletions
+59
-3
pig-twt-e1.pig
pig-twt-e1.pig
+13
-0
pig-twt-e1.pig~
pig-twt-e1.pig~
+13
-0
pig-twt-e2.pig
pig-twt-e2.pig
+15
-0
pig-twt-e2.pig~
pig-twt-e2.pig~
+15
-0
pig-twt.pig
pig-twt.pig
+1
-1
pig-twt.pig~
pig-twt.pig~
+2
-2
No files found.
pig-twt-e1.pig
0 → 100644
View file @
786209bd
dataset = LOAD '/laboratory/twitter-small.txt' AS (id: long, fr: long);
-- TODO: check if user IDs are valid (e.g. not null) and clean the dataset
B = FILTER dataset BY (id>0);
-- TODO: organize data such that each node ID is associated to a list of neighbors
C = FOREACH B GENERATE fr;
D = GROUP C BY fr;
friends = FOREACH D GENERATE group, COUNT(C);
STORE friends INTO '/twitter/results-e1';
pig-twt-e1.pig~
0 → 100644
View file @
786209bd
dataset = LOAD '/laboratory/twitter-small.txt' AS (id: long, fr: long);
-- TODO: check if user IDs are valid (e.g. not null) and clean the dataset
B = FILTER dataset BY (id>0);
-- TODO: organize data such that each node ID is associated to a list of neighbors
C = FOREACH B GENERATE fr;
D = GROUP C BY fr;
friends = FOREACH D GENERATE group, COUNT(C);
STORE friends INTO '/twitter/results1';
pig-twt-e2.pig
0 → 100644
View file @
786209bd
dataset = LOAD '/laboratory/twitter-small.txt' AS (id: long, fr: long);
-- TODO: check if user IDs are valid (e.g. not null) and clean the dataset
B = FILTER dataset BY (id>0);
-- TODO: organize data such that each node ID is associated to a list of neighbors
C = FOREACH B GENERATE id;
D = GROUP C BY id;
friends = FOREACH D GENERATE group, COUNT(C) AS count;
friends2 = FILTER friends BY (count > 2)
STORE friends2 INTO '/twitter/results-e2';
pig-twt-e2.pig~
0 → 100644
View file @
786209bd
dataset = LOAD '/laboratory/twitter-small.txt' AS (id: long, fr: long);
-- TODO: check if user IDs are valid (e.g. not null) and clean the dataset
B = FILTER dataset BY (id>0);
-- TODO: organize data such that each node ID is associated to a list of neighbors
C = FOREACH B GENERATE id;
D = GROUP C BY id;
friends = FOREACH D GENERATE group, COUNT(C) AS count;
friends2 = FILTER friends BY (count > 2)
STORE friends2 INTO '/twitter/results1';
pig-twt.pig
View file @
786209bd
...
...
@@ -10,4 +10,4 @@ D = GROUP C BY id;
friends = FOREACH D GENERATE group, COUNT(C);
STORE friends INTO '/twitter/results';
STORE friends INTO '/twitter/results
1
';
pig-twt.pig~
View file @
786209bd
dataset = LOAD '
tw
.txt' AS (id: long, fr: long);
dataset = LOAD '
/laboratory/twitter-small
.txt' AS (id: long, fr: long);
-- TODO: check if user IDs are valid (e.g. not null) and clean the dataset
B = FILTER dataset BY (id>0);
...
...
@@ -10,4 +10,4 @@ D = GROUP C BY id;
friends = FOREACH D GENERATE group, COUNT(C);
STORE friends INTO '
./local-output/OSN/twc/
';
STORE friends INTO '
/twitter/results
';
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment