Class HllSketchJsonSerialiser

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

    public class HllSketchJsonSerialiser
    extends com.fasterxml.jackson.databind.JsonSerializer<org.apache.datasketches.hll.HllSketch>
    A HllSketchJsonSerialiser serialises HllSketch objects.
    • Nested Class Summary

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

        com.fasterxml.jackson.databind.JsonSerializer.None
    • 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)  
      • Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

        acceptJsonFormatVisitor, getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId
    • Constructor Detail

      • HllSketchJsonSerialiser

        public HllSketchJsonSerialiser()
    • 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 class com.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 class com.fasterxml.jackson.databind.JsonSerializer<org.apache.datasketches.hll.HllSketch>
        Throws:
        IOException
      • handledType

        public Class<org.apache.datasketches.hll.HllSketch> handledType()
        Overrides:
        handledType in class com.fasterxml.jackson.databind.JsonSerializer<org.apache.datasketches.hll.HllSketch>