Class RoaringBitmapJsonSerialiser
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<org.roaringbitmap.RoaringBitmap>
-
- uk.gov.gchq.gaffer.bitmap.serialisation.json.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 forRoaringBitmap
instances.
-
-
Constructor Summary
Constructors Constructor Description RoaringBitmapJsonSerialiser()
-
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)
-
-
-
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 classcom.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 classcom.fasterxml.jackson.databind.JsonSerializer<org.roaringbitmap.RoaringBitmap>
- Throws:
IOException
-
-