コード例 #1
0
 public void reduce(StockRecord key, Iterable<NullWritable> values, Context context)
     throws IOException, InterruptedException {
   context.write(key, NullWritable.get());
 }
コード例 #2
0
 @Override
 protected void map(LongWritable key, StockRecord value, Context context)
     throws IOException, InterruptedException {
   context.write(value, NullWritable.get());
 }