public Boolean deserializeBoolean(JsonReadGenericRecord rec, String fieldName) {
JsonReadGenericRecord record = (JsonReadGenericRecord) rec;
JsonNode node = record.getNode().isBoolean() ? record.getNode() : getJsonNode(rec, fieldName);
if (node == null)
return null;
return node.booleanValue();
}
@Override
public Integer deserializeInteger(JsonReadGenericRecord record, String fieldName) {
JsonNode node = record.getNode().isNumber() ? record.getNode() : getJsonNode(record, fieldName);