Class KafkaSerdeMetadata
java.lang.Object
io.apicurio.registry.serde.data.SerdeMetadata
io.apicurio.registry.serde.kafka.data.KafkaSerdeMetadata
- All Implemented Interfaces:
io.apicurio.registry.resolver.data.Metadata
Kafka specific implementation for the Record Metadata abstraction used by the SchemaResolver
-
Constructor Summary
ConstructorsConstructorDescriptionKafkaSerdeMetadata(String topic, boolean isKey, org.apache.kafka.common.header.Headers headers) -
Method Summary
Modifier and TypeMethodDescriptionio.apicurio.registry.resolver.strategy.ArtifactReferenceorg.apache.kafka.common.header.HeadersvoidsetExplicitSchemaContent(String explicitSchemaContent) Sets the explicit schema content.voidsetExplicitSchemaType(String explicitSchemaType) Sets the explicit schema type.Methods inherited from class io.apicurio.registry.serde.data.SerdeMetadata
getTopic, isKey
-
Constructor Details
-
KafkaSerdeMetadata
public KafkaSerdeMetadata(String topic, boolean isKey, org.apache.kafka.common.header.Headers headers)
-
-
Method Details
-
artifactReference
public io.apicurio.registry.resolver.strategy.ArtifactReference artifactReference()- Specified by:
artifactReferencein interfaceio.apicurio.registry.resolver.data.Metadata- Overrides:
artifactReferencein classSerdeMetadata- See Also:
-
getHeaders
public org.apache.kafka.common.header.Headers getHeaders()- Returns:
- the headers
-
explicitSchemaContent
- See Also:
-
setExplicitSchemaContent
Sets the explicit schema content.- Parameters:
explicitSchemaContent- the schema content read from headers
-
explicitSchemaType
- See Also:
-
setExplicitSchemaType
Sets the explicit schema type.- Parameters:
explicitSchemaType- the schema type read from headers (e.g., "AVRO", "PROTOBUF", "JSON")
-