Class RoaringBitmapJsonSerialiser

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

    public class RoaringBitmapJsonSerialiser
    extends com.fasterxml.jackson.databind.JsonSerializer<org.roaringbitmap.RoaringBitmap>
    Custom serialisation logic for RoaringBitmap instances.
    • 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
      void serialize​(org.roaringbitmap.RoaringBitmap roaringBitmap, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider)  
      void serializeWithType​(org.roaringbitmap.RoaringBitmap 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, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId
    • Constructor Detail

      • RoaringBitmapJsonSerialiser

        public RoaringBitmapJsonSerialiser()
    • Method Detail

      • serialize

        public void serialize​(org.roaringbitmap.RoaringBitmap roaringBitmap,
                              com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
                              com.fasterxml.jackson.databind.SerializerProvider serializerProvider)
                       throws IOException
        Specified by:
        serialize in class com.fasterxml.jackson.databind.JsonSerializer<org.roaringbitmap.RoaringBitmap>
        Throws:
        IOException
      • serializeWithType

        public void serializeWithType​(org.roaringbitmap.RoaringBitmap 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.roaringbitmap.RoaringBitmap>
        Throws:
        IOException