ClassNotFoundException {
try {
metadataTag = in.readInt();
// get the tableDesc from the map stored in the mapjoin operator
MapJoinObjectCtx ctx = MapJoinOperator.getMapMetadata().get(Integer.valueOf(metadataTag));
int sz = in.readInt();
RowContainer res = new RowContainer(bucketSize);
res.setSerDe(ctx.getSerDe(), ctx.getStandardOI());
res.setTableDesc(ctx.getTblDesc());
for (int pos = 0; pos < sz; pos++) {
Writable val = ctx.getSerDe().getSerializedClass().newInstance();
val.readFields(in);
ArrayList<Object> memObj = (ArrayList<Object>)
ObjectInspectorUtils.copyToStandardObject(
ctx.getSerDe().deserialize(val),
ctx.getSerDe().getObjectInspector(),
ObjectInspectorCopyOption.WRITABLE);
res.add(memObj);
}
obj = res;