Class TopicPartitionSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<org.apache.kafka.common.TopicPartition>
-
- io.streamthoughts.azkarra.serialization.json.TopicPartitionSerializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public class TopicPartitionSerializer extends com.fasterxml.jackson.databind.JsonSerializer<org.apache.kafka.common.TopicPartition>
TheJsonSerializer
to serializeTopicPartition
instance.
-
-
Constructor Summary
Constructors Constructor Description TopicPartitionSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serialize(org.apache.kafka.common.TopicPartition value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers)
com.fasterxml.jackson.databind.JsonSerializer<org.apache.kafka.common.TopicPartition>
unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer nameTransformer)
-
-
-
Method Detail
-
serialize
public void serialize(org.apache.kafka.common.TopicPartition value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException
- Specified by:
serialize
in classcom.fasterxml.jackson.databind.JsonSerializer<org.apache.kafka.common.TopicPartition>
- Throws:
IOException
-
unwrappingSerializer
public com.fasterxml.jackson.databind.JsonSerializer<org.apache.kafka.common.TopicPartition> unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer nameTransformer)
- Overrides:
unwrappingSerializer
in classcom.fasterxml.jackson.databind.JsonSerializer<org.apache.kafka.common.TopicPartition>
-
-