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.AHyperLogLogPlusJsonDeserialiserdeserialisesHyperLogLogPlusobjects. All objects includingTypeValue,TypeSubTypeValue,CustomMapandFreqMapare now properly supported. The only stipulation is that theclassmust included in the fields of theJSONobject. This can be done inJavaby including theclassannotation:
The object will not be affected if it does not feature a@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "class")classas this will be ignored when the object is deserialised. Unfortunately, you cannot have arrays of values asoffersis not permitted.NOTE: the
toStringmethod is called by theHyperLogLogPlusclass when making theoffersso you need to ensure that thetoStringmethod is overridden by your object.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASSDeprecated.static StringHYPER_LOG_LOG_PLUSDeprecated.
-
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.HyperLogLogPlusdeserialize(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 IOExceptionDeprecated.- Specified by:
deserializein classcom.fasterxml.jackson.databind.JsonDeserializer<com.clearspring.analytics.stream.cardinality.HyperLogLogPlus>- Throws:
IOException
-
-