aboutsummaryrefslogtreecommitdiffstats
path: root/P1/src
diff options
context:
space:
mode:
authorAndrea Smith <smit9523@umn.edu>2020-10-04 10:11:11 -0500
committerAndrea Smith <smit9523@umn.edu>2020-10-04 10:11:11 -0500
commit04f3434105a8fb8c8d97d9bd373e3a0c828405b6 (patch)
treec7faeedfad1bbc8c54cf6ccaa241696766c9cada /P1/src
parentfix a formatting (diff)
downloadcsci4061-04f3434105a8fb8c8d97d9bd373e3a0c828405b6.tar
csci4061-04f3434105a8fb8c8d97d9bd373e3a0c828405b6.tar.gz
csci4061-04f3434105a8fb8c8d97d9bd373e3a0c828405b6.tar.bz2
csci4061-04f3434105a8fb8c8d97d9bd373e3a0c828405b6.tar.lz
csci4061-04f3434105a8fb8c8d97d9bd373e3a0c828405b6.tar.xz
csci4061-04f3434105a8fb8c8d97d9bd373e3a0c828405b6.tar.zst
csci4061-04f3434105a8fb8c8d97d9bd373e3a0c828405b6.zip
Update
Diffstat (limited to '')
-rw-r--r--P1/src/mapper.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/P1/src/mapper.c b/P1/src/mapper.c
index f9eec52..8bbd2a6 100644
--- a/P1/src/mapper.c
+++ b/P1/src/mapper.c
@@ -94,7 +94,11 @@ void emit(char *key, char *value) {
// map function
void map(char *chunkData){
-
+ int i = 0;
+ char *buffer;
+ while ((buffer = getWord(chunkData, &i)) != NULL){
+ // get words from buffer & give it to emitter to be put into intermediateDS
+ }
// you can use getWord to retrieve words from the
// chunkData one by one. Example usage in utils.h
}