Class TopicPartitionSerializer

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

    public class TopicPartitionSerializer
    extends com.fasterxml.jackson.databind.JsonSerializer<org.apache.kafka.common.TopicPartition>
    The JsonSerializer to serialize TopicPartition instance.
    • 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.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)
      • Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

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

      • TopicPartitionSerializer

        public TopicPartitionSerializer()
    • 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 class com.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 class com.fasterxml.jackson.databind.JsonSerializer<org.apache.kafka.common.TopicPartition>