public class ConfluentSchemaRegistryCoder extends Object implements org.apache.flink.formats.avro.SchemaCoder
| Constructor and Description |
|---|
ConfluentSchemaRegistryCoder(io.confluent.kafka.schemaregistry.client.SchemaRegistryClient schemaRegistryClient)
Creates
SchemaCoder that uses provided SchemaRegistryClient to connect to
schema registry. |
ConfluentSchemaRegistryCoder(String subject,
io.confluent.kafka.schemaregistry.client.SchemaRegistryClient schemaRegistryClient)
Creates
SchemaCoder that uses provided SchemaRegistryClient to connect to
schema registry. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.avro.Schema |
readSchema(InputStream in) |
void |
writeSchema(org.apache.avro.Schema schema,
OutputStream out) |
public ConfluentSchemaRegistryCoder(String subject, io.confluent.kafka.schemaregistry.client.SchemaRegistryClient schemaRegistryClient)
SchemaCoder that uses provided SchemaRegistryClient to connect to
schema registry.schemaRegistryClient - client to connect schema registrysubject - subject of schema registry to producepublic ConfluentSchemaRegistryCoder(io.confluent.kafka.schemaregistry.client.SchemaRegistryClient schemaRegistryClient)
SchemaCoder that uses provided SchemaRegistryClient to connect to
schema registry.schemaRegistryClient - client to connect schema registrypublic org.apache.avro.Schema readSchema(InputStream in) throws IOException
readSchema in interface org.apache.flink.formats.avro.SchemaCoderIOExceptionpublic void writeSchema(org.apache.avro.Schema schema,
OutputStream out)
throws IOException
writeSchema in interface org.apache.flink.formats.avro.SchemaCoderIOExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.