summaryrefslogtreecommitdiff
path: root/dtrain/scfg/features/count/featurecount.h
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2011-09-24 23:46:49 +0200
committerPatrick Simianer <p@simianer.de>2011-09-24 23:46:49 +0200
commit5e1ab3481551607f1c2a10027049044cd41f78ab (patch)
treeb89cc3587f2e5d34f14f4b977f8a0909f62fe8e1 /dtrain/scfg/features/count/featurecount.h
parent5584f300821e20369c25343222cd0e8faa393523 (diff)
cleaning up
Diffstat (limited to 'dtrain/scfg/features/count/featurecount.h')
-rw-r--r--dtrain/scfg/features/count/featurecount.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/dtrain/scfg/features/count/featurecount.h b/dtrain/scfg/features/count/featurecount.h
new file mode 100644
index 00000000..9431534f
--- /dev/null
+++ b/dtrain/scfg/features/count/featurecount.h
@@ -0,0 +1,32 @@
+#ifndef __FEATURECOUNT_HH__
+#define __FEATURECOUNT_HH__
+
+#include "hadoop/Pipes.hh"
+#include "hadoop/TemplateFactory.hh"
+#include "hadoop/StringUtils.hh"
+#include <iostream>
+#include <string>
+#include <boost/algorithm/string.hpp>
+#include <boost/tokenizer.hpp>
+#include <boost/lexical_cast.hpp>
+
+using namespace std;
+
+
+class FeatureCountMapper : public HadoopPipes::Mapper
+{
+ public:
+ FeatureCountMapper( const HadoopPipes::TaskContext& ) {};
+ void map( HadoopPipes::MapContext &context );
+};
+
+class FeatureCountReducer : public HadoopPipes::Reducer
+{
+ public:
+ FeatureCountReducer( const HadoopPipes::TaskContext& ) {};
+ void reduce( HadoopPipes::ReduceContext & context );
+};
+
+
+#endif
+