Class HllSketchJsonSerialiser
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<org.apache.datasketches.hll.HllSketch>
-
- uk.gov.gchq.gaffer.sketches.datasketches.cardinality.serialisation.json.HllSketchJsonSerialiser
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public class HllSketchJsonSerialiser extends com.fasterxml.jackson.databind.JsonSerializer<org.apache.datasketches.hll.HllSketch>
AHllSketchJsonSerialiser
serialisesHllSketch
objects.
-
-
Constructor Summary
Constructors Constructor Description HllSketchJsonSerialiser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<org.apache.datasketches.hll.HllSketch>
handledType()
void
serialize(org.apache.datasketches.hll.HllSketch hllSketch, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider)
void
serializeWithType(org.apache.datasketches.hll.HllSketch value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
-
-
-
Method Detail
-
serialize
public void serialize(org.apache.datasketches.hll.HllSketch hllSketch, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
- Specified by:
serialize
in classcom.fasterxml.jackson.databind.JsonSerializer<org.apache.datasketches.hll.HllSketch>
- Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException
-
serializeWithType
public void serializeWithType(org.apache.datasketches.hll.HllSketch value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException
- Overrides:
serializeWithType
in classcom.fasterxml.jackson.databind.JsonSerializer<org.apache.datasketches.hll.HllSketch>
- Throws:
IOException
-
handledType
public Class<org.apache.datasketches.hll.HllSketch> handledType()
- Overrides:
handledType
in classcom.fasterxml.jackson.databind.JsonSerializer<org.apache.datasketches.hll.HllSketch>
-
-