MP7 MapReduce
libmapreduce.h
Go to the documentation of this file.
00001 /* 
00002  * CS 241
00003  * The University of Illinois
00004  */
00005  
00008 #ifndef _LIBMAPREDUCE_H_
00009 #define _LIBMAPREDUCE_H_
00010 
00011 #include <pthread.h>
00012 #include "libdictionary.h"
00013 
00014 typedef struct _mapreduce_t
00015 {
00016 } mapreduce_t;
00017 
00025 void mapreduce_init(mapreduce_t *mr,
00026                         void (*mymap)(int, const char *),
00027                                         const char *(*myreduce)(const char *, const char *));
00028                                         
00034 void mapreduce_map_all(mapreduce_t *mr, const char **values);
00035 
00039 void mapreduce_reduce_all(mapreduce_t *mr);
00040 
00044 const char *mapreduce_get_value(mapreduce_t *mr, const char *result_key);
00045 
00049 void mapreduce_destroy(mapreduce_t *mr);
00050 
00051 #endif
 All Data Structures Files Functions