Class AvroUntypedDeserializer

java.lang.Object
tools.jackson.databind.ValueDeserializer<T>
tools.jackson.databind.deser.std.StdDeserializer<Object>
tools.jackson.databind.deser.jdk.UntypedObjectDeserializer
tools.jackson.dataformat.avro.deser.AvroUntypedDeserializer
All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider, tools.jackson.databind.deser.ValueInstantiator.Gettable

public class AvroUntypedDeserializer extends tools.jackson.databind.deser.jdk.UntypedObjectDeserializer
Deserializer for handling when we have no target type, just schema type. Normally, the 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.
  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer

    tools.jackson.databind.ValueDeserializer.None
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected tools.jackson.databind.jsontype.TypeDeserializer
     

    Fields inherited from class tools.jackson.databind.deser.jdk.UntypedObjectDeserializer

    _listDeserializer, _listType, _mapDeserializer, _mapType, _nonMerging, _numberDeserializer, _stringDeserializer, NO_OBJECTS

    Fields inherited from class tools.jackson.databind.deser.std.StdDeserializer

    _valueClass, _valueType, F_MASK_INT_COERCIONS
  • Constructor Summary

    Constructors
    Constructor
    Description
    AvroUntypedDeserializer(tools.jackson.databind.JavaType listType, tools.jackson.databind.JavaType mapType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    construct(tools.jackson.databind.type.TypeFactory f)
     
    deserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt)
     
    deserializeWithType(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt, tools.jackson.databind.jsontype.TypeDeserializer typeDeserializer)
     
    protected Object
    mapObject(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt)
    Method called to map a JSON Object into a Java value.
    void
    resolve(tools.jackson.databind.DeserializationContext ctxt)
     

    Methods inherited from class tools.jackson.databind.deser.jdk.UntypedObjectDeserializer

    _clearIfStdImpl, _deserializeFP, _findCustomDeser, _mapObjectWithDups, createContextual, deserialize, isCachable, logicalType, mapArray, mapArray, mapArrayToArray, mapObject, supportsUpdate

    Methods inherited from class tools.jackson.databind.deser.std.StdDeserializer

    _byteOverflow, _checkBooleanToStringCoercion, _checkCoercionFail, _checkDoubleSpecialValue, _checkFloatSpecialValue, _checkFloatToIntCoercion, _checkFloatToStringCoercion, _checkFromStringCoercion, _checkFromStringCoercion, _checkIntToFloatCoercion, _checkIntToStringCoercion, _checkTextualNull, _checkToStringCoercion, _coerceBooleanFromInt, _coercedTypeDesc, _coercedTypeDesc, _coerceIntegral, _deserializeFromArray, _deserializeFromEmptyString, _deserializeFromString, _deserializeFromStringForContainer, _deserializeWrappedValue, _findCoercionFromBlankString, _findCoercionFromEmptyArray, _findCoercionFromEmptyString, _findNullProvider, _hasTextualNull, _intOverflow, _isBlank, _isFalse, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _isTrue, _neitherNull, _nonNullNumber, _parseBoolean, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDouble, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseInteger, _parseInteger, _parseIntPrimitive, _parseIntPrimitive, _parseLong, _parseLong, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _wrapIOFailure, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatFeature, findFormatOverrides, findFormatOverrides, findValueNullProvider, getValueInstantiator, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleNestedArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer

    Methods inherited from class tools.jackson.databind.ValueDeserializer

    deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, replaceDelegatee, unwrappingDeserializer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _typeDeserializer

      protected tools.jackson.databind.jsontype.TypeDeserializer _typeDeserializer
  • Constructor Details

    • AvroUntypedDeserializer

      public AvroUntypedDeserializer(tools.jackson.databind.JavaType listType, tools.jackson.databind.JavaType mapType)
  • Method Details

    • construct

      public static AvroUntypedDeserializer construct(tools.jackson.databind.type.TypeFactory f)
    • resolve

      public void resolve(tools.jackson.databind.DeserializationContext ctxt)
      Overrides:
      resolve in class tools.jackson.databind.deser.jdk.UntypedObjectDeserializer
    • deserialize

      public Object deserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt) throws tools.jackson.core.JacksonException
      Overrides:
      deserialize in class tools.jackson.databind.deser.jdk.UntypedObjectDeserializer
      Throws:
      tools.jackson.core.JacksonException
    • deserializeWithType

      public Object deserializeWithType(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt, tools.jackson.databind.jsontype.TypeDeserializer typeDeserializer) throws tools.jackson.core.JacksonException
      Overrides:
      deserializeWithType in class tools.jackson.databind.deser.jdk.UntypedObjectDeserializer
      Throws:
      tools.jackson.core.JacksonException
    • mapObject

      protected Object mapObject(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt) throws tools.jackson.core.JacksonException
      Method called to map a JSON Object into a Java value.
      Overrides:
      mapObject in class tools.jackson.databind.deser.jdk.UntypedObjectDeserializer
      Throws:
      tools.jackson.core.JacksonException