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, _mapObjectWithDups, createContextual, deserialize, isCachable, logicalType, mapArray, mapArray, mapArrayToArray, mapObject, supportsUpdate_byteOverflow, _checkCoercionFail, _checkDoubleSpecialValue, _checkFloatSpecialValue, _checkFloatToIntCoercion, _checkFromStringCoercion, _checkFromStringCoercion, _checkTextualNull, _coerceBooleanFromInt, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeFromEmptyString, _deserializeFromString, _deserializeWrappedValue, _failDoubleToIntCoercion, _findCoercionFromBlankString, _findCoercionFromEmptyArray, _findCoercionFromEmptyString, _findNullProvider, _hasTextualNull, _intOverflow, _isBlank, _isEmptyOrTextualNull, _isFalse, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _isTrue, _neitherNull, _nonNullNumber, _parseBoolean, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDouble, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueInstantiator, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializerdeserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, replaceDelegatee, unwrappingDeserializerprotected 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.ResolvableDeserializerresolve in class com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializercom.fasterxml.jackson.databind.JsonMappingExceptionpublic 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.UntypedObjectDeserializerIOExceptionpublic 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.UntypedObjectDeserializerIOExceptionprotected 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.UntypedObjectDeserializerIOExceptionCopyright © 2020 FasterXML. All rights reserved.