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()); } }