}
@Override
public Object terminatePartial(AggregationBuffer agg) throws HiveException {
BitmapAgg myagg = (BitmapAgg) agg;
BitmapObjectOutput bitmapObjOut = new BitmapObjectOutput();
try {
myagg.bitmap.writeExternal(bitmapObjOut);
} catch (IOException e) {
throw new RuntimeException(e);
}
return bitmapObjOut.list();
}