diff options
author | Matt Strapp <strap012@umn.edu> | 2020-09-24 07:24:19 -0500 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-09-24 07:24:19 -0500 |
commit | 7f2f7f7c3e5d4c626d7e8d4d45fee2b11b6d5221 (patch) | |
tree | 73142dd8d25f71467fc0fa602e3caaf0f6b8b34f /P1/Template/include/mapper.h | |
parent | Add project 1 files (diff) | |
download | csci4061-7f2f7f7c3e5d4c626d7e8d4d45fee2b11b6d5221.tar csci4061-7f2f7f7c3e5d4c626d7e8d4d45fee2b11b6d5221.tar.gz csci4061-7f2f7f7c3e5d4c626d7e8d4d45fee2b11b6d5221.tar.bz2 csci4061-7f2f7f7c3e5d4c626d7e8d4d45fee2b11b6d5221.tar.lz csci4061-7f2f7f7c3e5d4c626d7e8d4d45fee2b11b6d5221.tar.xz csci4061-7f2f7f7c3e5d4c626d7e8d4d45fee2b11b6d5221.tar.zst csci4061-7f2f7f7c3e5d4c626d7e8d4d45fee2b11b6d5221.zip |
rearrange
Diffstat (limited to 'P1/Template/include/mapper.h')
-rw-r--r-- | P1/Template/include/mapper.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/P1/Template/include/mapper.h b/P1/Template/include/mapper.h deleted file mode 100644 index 2e3693c..0000000 --- a/P1/Template/include/mapper.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef MAPPER_H -#define MAPPER_H - -#include "utils.h" - -// ###### DO NOT REMOVE ###### -#define MAXKEYSZ 100 -#define MAXVALUESZ 100 - -// ###### DO NOT REMOVE ###### -char *mapOutDir; -int mapperID; - - -// You are free to change the intermediate data structure as it suits you -// If you do so, ensure the provided utility functions are also changed -// 1 1 1... -typedef struct valueList { - // MAXVALUESZ can be reduced to a small value as you are only storing "1" - char value[MAXVALUESZ]; - struct valueList *next; -}valueList; - -// word 1 1 1... -typedef struct intermediateDS{ - char key[MAXKEYSZ]; - valueList *value; - struct intermediateDS *next; -}intermediateDS; - -// ###### DO NOT REMOVE ###### -valueList *createNewValueListNode(char *value); -valueList *insertNewValueToList(valueList *root, char *count); -void freeValueList(valueList *root); - -// ###### DO NOT REMOVE ###### -intermediateDS *createNewInterDSNode(char *word, char *count); -intermediateDS *insertPairToInterDS(intermediateDS *root, char *word, char *count); -void freeInterDS(intermediateDS *root); - -// ###### DO NOT REMOVE ###### -void emit(char *key, char *value); -void map(char *chunkData); -void writeIntermediateDS(); - -#endif
\ No newline at end of file |