}
}
public Object deserialize(Writable field) throws SerDeException {
if (field instanceof StockPriceWritable) {
StockPriceWritable stock = (StockPriceWritable) field;
row.set(0, stock.getSymbol());
row.set(1, stock.getDate());
row.set(2, stock.getOpen());
row.set(3, stock.getHigh());
row.set(4, stock.getLow());
row.set(5, stock.getClose());
row.set(6, stock.getVolume());
row.set(7, stock.getAdjClose());
return row;
}
throw new SerDeException(this.getClass().getName()
+ " unexpected Writable type " + field.getClass().getName());
}