Interface KafkaSerdeProvider

  • All Known Implementing Classes:
    NativeKafkaSerdeProvider

    public interface KafkaSerdeProvider
    Base type for extensions that provide Kafka serde

    Creek loads extensions using the standard ServiceLoader. To be loaded by Creek the provider must be registered in either the module-info.java file as a provider of KafkaSerdeProvider and/or have a suitable entry in the META-INFO.services directory.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> org.apache.kafka.common.serialization.Serde<T> create​(org.creekservice.api.kafka.metadata.KafkaTopicDescriptor.PartDescriptor<T> part)
      Get the serde for the supplied Kafka record part.
      org.creekservice.api.kafka.metadata.SerializationFormat format()  
    • Method Detail

      • format

        org.creekservice.api.kafka.metadata.SerializationFormat format()
        Returns:
        the unique serialization format the serde provides.
      • create

        <T> org.apache.kafka.common.serialization.Serde<T> create​(org.creekservice.api.kafka.metadata.KafkaTopicDescriptor.PartDescriptor<T> part)
        Get the serde for the supplied Kafka record part.

        Serde.configure(java.util.Map<java.lang.String, ?>, boolean) will be called on the returned serde.

        Type Parameters:
        T - the type of the part.
        Parameters:
        part - the part descriptor
        Returns:
        the serde to use to serialize and deserialize the part.