public class AvroUntypedDeserializer
extends com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer
implements com.fasterxml.jackson.databind.deser.ResolvableDeserializer
UntypedObjectDeserializer
doesn't look
for native type information when handling scalar values, but Avro sometimes includes type information in the schema for scalar values;
This subclass checks for the presence of valid type information and calls out to the type deserializer even for scalar values. The
same goes for map keys.Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.jsontype.TypeDeserializer |
_typeDeserializer |
protected com.fasterxml.jackson.databind.JavaType |
_typeObject |
Constructor and Description |
---|
AvroUntypedDeserializer() |
Modifier and Type | Method and Description |
---|---|
Object |
deserialize(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
Object |
deserializeWithType(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) |
protected Object |
mapObject(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt)
Method called to map a JSON Object into a Java value.
|
void |
resolve(com.fasterxml.jackson.databind.DeserializationContext ctxt) |
_clearIfStdImpl, _findCustomDeser, createContextual, deserialize, isCachable, mapArray, mapArray, mapArrayToArray, mapObject, supportsUpdate
_byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, replaceDelegatee, unwrappingDeserializer
protected com.fasterxml.jackson.databind.JavaType _typeObject
protected com.fasterxml.jackson.databind.jsontype.TypeDeserializer _typeDeserializer
public void resolve(com.fasterxml.jackson.databind.DeserializationContext ctxt) throws com.fasterxml.jackson.databind.JsonMappingException
resolve
in interface com.fasterxml.jackson.databind.deser.ResolvableDeserializer
resolve
in class com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer
com.fasterxml.jackson.databind.JsonMappingException
public Object deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
deserialize
in class com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer
IOException
public Object deserializeWithType(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) throws IOException
deserializeWithType
in class com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer
IOException
protected Object mapObject(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
mapObject
in class com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer
IOException
Copyright © 2019 FasterXML. All rights reserved.