From 26c490f404731d053a6205719b6246502c07b449 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sat, 14 Jun 2014 16:46:27 +0200 Subject: init --- hadoop/wordcount/pipes/wordcount.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 hadoop/wordcount/pipes/wordcount.h (limited to 'hadoop/wordcount/pipes/wordcount.h') diff --git a/hadoop/wordcount/pipes/wordcount.h b/hadoop/wordcount/pipes/wordcount.h new file mode 100644 index 0000000..5b08d49 --- /dev/null +++ b/hadoop/wordcount/pipes/wordcount.h @@ -0,0 +1,34 @@ +#ifndef __WORDCOUNT_HH__ +#define __WORDCOUNT_HH__ + + +#include +#include + +#include "hadoop/Pipes.hh" +#include "hadoop/TemplateFactory.hh" + +#include +#include +#include + +using namespace std; + + +class WordcountMapper : public HadoopPipes::Mapper +{ + public: + WordcountMapper(const HadoopPipes::TaskContext&) {}; + void map(HadoopPipes::MapContext &context); +}; + +class WordcountReducer : public HadoopPipes::Reducer +{ + public: + WordcountReducer(const HadoopPipes::TaskContext&) {}; + void reduce(HadoopPipes::ReduceContext &context); +}; + + +#endif + -- cgit v1.2.3