aboutsummaryrefslogtreecommitdiffstats
path: root/P1/src
diff options
context:
space:
mode:
Diffstat (limited to 'P1/src')
-rw-r--r--P1/src/mapper.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/P1/src/mapper.c b/P1/src/mapper.c
index f1299b7..a70f352 100644
--- a/P1/src/mapper.c
+++ b/P1/src/mapper.c
@@ -76,8 +76,14 @@ while (root != NULL) {
}
// emit the <key, value> into intermediate DS
+// eats the data into the DS
void emit(char *key, char *value) {
-
+ // Traverse the value list
+ intermediateDS *tempNode = NULL;
+ while (root != NULL) {
+ tempNode = root;
+ root = root -> next;
+ }
}
// map function
@@ -89,6 +95,7 @@ void map(char *chunkData){
// write intermediate data to separate word.txt files
// Each file will have only one line : word 1 1 1 1 1 ...
+// poops the data out into separate .txt files
void writeIntermediateDS() {
}