コード例 #1
0
ファイル: MyMapper.java プロジェクト: qsiddiqui81/Hadoop
  protected void map(MyKey key, MyValue value, Context context)
      throws IOException, InterruptedException {
    String sensor = key.getSensorType().toString();

    if (sensor.toLowerCase().equals("a")) {
      context.write(value.getValue1(), value.getValue2());
    }
  }