MP7 MapReduce
libmapreduce.h
Go to the documentation of this file.
00001 
00002 /* 
00003  * CS 241
00004  * The University of Illinois
00005  */
00006  
00007 #ifndef _LIBMAPREDUCE_H_
00008 #define _LIBMAPREDUCE_H_
00009 
00010 #include <pthread.h>
00011 #include "libds/libds.h"
00012 
00013 typedef struct _mapreduce_t
00014 {
00015         // You will need to add some stuff here! :)
00016                 
00017 } mapreduce_t;
00018 
00019 
00027 void mapreduce_init(mapreduce_t *mr, void (*mymap)(int, const char *), const char *(*myreduce)(const char *, const char *));
00028 
00029 
00035 void mapreduce_map_all(mapreduce_t *mr, const char **values);
00036 
00037 
00041 void mapreduce_reduce_all(mapreduce_t *mr);
00042 
00043 
00047 const char *mapreduce_get_value(mapreduce_t *mr, const char *result_key);
00048 
00049 
00053 void mapreduce_destroy(mapreduce_t *mr);
00054 
00055 #endif
 All Data Structures Files Functions