KMR
Macros | Functions
wc.reducer.c File Reference

Example for KMR shell command pipeline. More...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

Go to the source code of this file.

Macros

#define KEYLEN   32767
 Maximum key-value string length. More...
 
#define LINELEN   32767
 Maximum line length. More...
 

Functions

int main (int argc, char *argv[])
 Reducer main routine. More...
 

Detailed Description

Example for KMR shell command pipeline.

It is a reducer for word count.

Definition in file wc.reducer.c.

Macro Definition Documentation

#define LINELEN   32767

Maximum line length.

Definition at line 10 of file wc.reducer.c.

#define KEYLEN   32767

Maximum key-value string length.

Definition at line 13 of file wc.reducer.c.

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Reducer main routine.

Read stdin and reduce. Write result to stdout.

Definition at line 19 of file wc.reducer.c.