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