Class BackupConverterHelper
java.lang.Object
io.confluent.connect.schema.backup.core.BackupConverterHelper
Shared helper for backup metadata wrapping in SR converters.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBackupConverterHelper(SchemaRegistryClient schemaRegistry, Map<org.apache.kafka.connect.data.Schema, org.apache.kafka.connect.data.Schema> wrapperSchemaCache) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBackupEnabled(Map<String, ?> configs) org.apache.kafka.connect.data.SchemaAndValuewrapWithBackupMetadata(org.apache.kafka.connect.data.SchemaAndValue original, String topic, ParsedSchemaAndValue.SchemaInfo schemaInfo, String schemaType, boolean isKey, BackupReferenceResolver.ParsedSchemaFactory schemaFactory, BackupConverterHelper.SubjectNameComputer subjectComputer)
-
Constructor Details
-
BackupConverterHelper
public BackupConverterHelper(SchemaRegistryClient schemaRegistry, Map<org.apache.kafka.connect.data.Schema, org.apache.kafka.connect.data.Schema> wrapperSchemaCache)
-
-
Method Details
-
getReferenceResolver
-
isBackupEnabled
-
wrapWithBackupMetadata
public org.apache.kafka.connect.data.SchemaAndValue wrapWithBackupMetadata(org.apache.kafka.connect.data.SchemaAndValue original, String topic, ParsedSchemaAndValue.SchemaInfo schemaInfo, String schemaType, boolean isKey, BackupReferenceResolver.ParsedSchemaFactory schemaFactory, BackupConverterHelper.SubjectNameComputer subjectComputer) throws IOException, RestClientException - Throws:
IOExceptionRestClientException
-