currentArray.add(fromBytes(currentSchema, entry.getValue().get()));
break;
case RECORD:
SpecificDatumReader reader = new SpecificDatumReader(field.schema());
byte[] val = entry.getValue().get();
// TODO reuse decoder
BinaryDecoder decoder = DecoderFactory.defaultFactory().createBinaryDecoder(val, null);
persistent.put(field.pos(), reader.read(null, decoder));
break;
default:
persistent.put(field.pos(), fromBytes(field.schema(), entry.getValue().get()));
}
}