コード例 #1
0
ファイル: TestExample.java プロジェクト: Ronald33/hadoop-0.21
 public void map(LongWritable key, VerticaRecord value, Context context)
     throws IOException, InterruptedException {
   List<Object> record = value.getValues();
   context.write(new Text((String) record.get(1)), new DoubleWritable((Long) record.get(0)));
 }