summaryrefslogtreecommitdiff
path: root/dtrain/scfg/features/count/featurecount.hh
blob: 9431534f698551c8da228310bc6c34c77ee90299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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