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
7fa9b813
Commit
7fa9b813
authored
Nov 24, 2015
by
leroyq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
twt5
parent
8a311e3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pig-twt.pig
pig-twt.pig
+2
-2
pig-twt.pig~
pig-twt.pig~
+1
-1
No files found.
pig-twt.pig
View file @
7fa9b813
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
';
pig-twt.pig~
View file @
7fa9b813
...
...
@@ -8,6 +8,6 @@ C = FOREACH B GENERATE id;
D = GROUP C BY id;
friends = FOREACH D GENERATE group, COUNT(
D
);
friends = FOREACH D GENERATE group, COUNT(
C
);
STORE friends INTO './local-output/OSN/twc/';
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