profiling_code/summon/CountRecsMapper.java
<reponame>Bernice55231/Analysis-on-Temperature-Criminal-summons-and-Homelessness-in-NYC<gh_stars>0import java.io.IOException;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

public class CountRecsMapper
  extends Mapper<LongWritable, Text, Text, IntWritable> {
  
  @Override
  public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {
    if(value.toString().length()>0){
      context.write(new Text("Total number of lines in the file"), new IntWritable(1));
    }
  }
}
      