aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Smith <smit9523@umn.edu>2020-10-03 17:01:52 -0500
committerAndrea Smith <smit9523@umn.edu>2020-10-03 17:01:52 -0500
commit59f9b753e3dac069b446925405dc16008fb4484e (patch)
tree5da90f851b08d6146ade4230bc677e2e39f04521
parentMerge branch 'master' of github.umn.edu:STRAP012/csci4061Projects (diff)
downloadcsci4061-59f9b753e3dac069b446925405dc16008fb4484e.tar
csci4061-59f9b753e3dac069b446925405dc16008fb4484e.tar.gz
csci4061-59f9b753e3dac069b446925405dc16008fb4484e.tar.bz2
csci4061-59f9b753e3dac069b446925405dc16008fb4484e.tar.lz
csci4061-59f9b753e3dac069b446925405dc16008fb4484e.tar.xz
csci4061-59f9b753e3dac069b446925405dc16008fb4484e.tar.zst
csci4061-59f9b753e3dac069b446925405dc16008fb4484e.zip
Update
-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() {
}