Class HyperLogLogPlusJsonDeserialiser
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonDeserializer<com.clearspring.analytics.stream.cardinality.HyperLogLogPlus>
-
- uk.gov.gchq.gaffer.sketches.clearspring.cardinality.serialisation.json.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.AHyperLogLogPlusJsonDeserialiser
deserialisesHyperLogLogPlus
objects. All objects includingTypeValue
,TypeSubTypeValue
,CustomMap
andFreqMap
are now properly supported. The only stipulation is that theclass
must included in the fields of theJSON
object. This can be done inJava
by including theclass
annotation
:@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "class")
class
as this will be ignored when the object is deserialised. Unfortunately, you cannot have arrays of values asoffers
is not permitted.NOTE: the
toString
method is called by theHyperLogLogPlus
class when making theoffers
so you need to ensure that thetoString
method is overridden by your object.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLASS
Deprecated.static String
HYPER_LOG_LOG_PLUS
Deprecated.
-
Constructor Summary
Constructors Constructor Description HyperLogLogPlusJsonDeserialiser()
Deprecated.
-
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
-
-
-
-
Field Detail
-
CLASS
public static final String CLASS
Deprecated.- See Also:
- Constant Field Values
-
HYPER_LOG_LOG_PLUS
public static final String HYPER_LOG_LOG_PLUS
Deprecated.- See Also:
- Constant Field Values
-
-
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 classcom.fasterxml.jackson.databind.JsonDeserializer<com.clearspring.analytics.stream.cardinality.HyperLogLogPlus>
- Throws:
IOException
-
-