Class QualifiedReferenceSubjectNameStrategy

java.lang.Object
io.confluent.kafka.serializers.subject.QualifiedReferenceSubjectNameStrategy
All Implemented Interfaces:
ReferenceSubjectNameStrategy, org.apache.kafka.common.Configurable

public class QualifiedReferenceSubjectNameStrategy extends Object implements ReferenceSubjectNameStrategy
An implementation of ReferenceSubjectNameStrategy that makes a reference name that represents a path appear as a qualified name.
  • Constructor Details

    • QualifiedReferenceSubjectNameStrategy

      public QualifiedReferenceSubjectNameStrategy()
  • Method Details

    • subjectName

      public String subjectName(String refName, String topic, boolean isKey, ParsedSchema schema)
      Given a reference name, this method returns a subject name. The reference name here is simply the path of the Protobuf file, with slashes replaced by dots, and the .proto suffix removed.
      Specified by:
      subjectName in interface ReferenceSubjectNameStrategy
      Parameters:
      refName - name of the reference, the relative path of the Protobuf file
      topic - the topic name
      isKey - whether this reference is a key or a value
      schema - the in-memory representation of the Protobuf schema
      Returns:
      the subject name
    • configure

      public void configure(Map<String,?> map)
      Specified by:
      configure in interface org.apache.kafka.common.Configurable