}
if (rdata != null) {
try {
if (rdata instanceof REXPInteger) {
return new IntWritable(rdata.asInteger());
} else if (rdata instanceof REXPString) {
return new Text(rdata.asString());
} else if (rdata instanceof REXPDouble) {
return new DoubleWritable(rdata.asDouble());
} else {