Class HyperLogLogPlusJsonDeserialiser

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.deser.NullValueProvider

    @Deprecated
    public class HyperLogLogPlusJsonDeserialiser
    extends com.fasterxml.jackson.databind.JsonDeserializer<com.clearspring.analytics.stream.cardinality.HyperLogLogPlus>
    Deprecated.
    A HyperLogLogPlusJsonDeserialiser deserialises HyperLogLogPlus objects. All objects including TypeValue, TypeSubTypeValue, CustomMap and FreqMap are now properly supported. The only stipulation is that the class must included in the fields of the JSON object. This can be done in Java by including the class annotation:
     @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "class")
     
    The object will not be affected if it does not feature a class as this will be ignored when the object is deserialised. Unfortunately, you cannot have arrays of values as offers is not permitted.

    NOTE: the toString method is called by the HyperLogLogPlus class when making the offers so you need to ensure that the toString method is overridden by your object.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer

        com.fasterxml.jackson.databind.JsonDeserializer.None
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      com.clearspring.analytics.stream.cardinality.HyperLogLogPlus deserialize​(com.fasterxml.jackson.core.JsonParser jsonParser, com.fasterxml.jackson.databind.DeserializationContext deserializationContext)
      Deprecated.
       
      • Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer

        deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
    • Constructor Detail

      • HyperLogLogPlusJsonDeserialiser

        public HyperLogLogPlusJsonDeserialiser()
        Deprecated.
    • Method Detail

      • deserialize

        public com.clearspring.analytics.stream.cardinality.HyperLogLogPlus deserialize​(com.fasterxml.jackson.core.JsonParser jsonParser,
                                                                                        com.fasterxml.jackson.databind.DeserializationContext deserializationContext)
                                                                                 throws IOException
        Deprecated.
        Specified by:
        deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<com.clearspring.analytics.stream.cardinality.HyperLogLogPlus>
        Throws:
        IOException