Class ConfluentRegistryAvroDeserializationSchema<T>
- java.lang.Object
-
- org.apache.flink.formats.avro.AvroDeserializationSchema<T>
-
- org.apache.flink.formats.avro.RegistryAvroDeserializationSchema<T>
-
- org.apache.flink.formats.avro.registry.confluent.ConfluentRegistryAvroDeserializationSchema<T>
-
- Type Parameters:
T- type of record it produces
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.serialization.DeserializationSchema<T>,org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>
public class ConfluentRegistryAvroDeserializationSchema<T> extends org.apache.flink.formats.avro.RegistryAvroDeserializationSchema<T>Deserialization schema that deserializes from Avro binary format usingSchemaCoderthat uses Confluent Schema Registry.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfluentRegistryAvroDeserializationSchema<org.apache.avro.generic.GenericRecord>forGeneric(org.apache.avro.Schema schema, String url)CreatesConfluentRegistryAvroDeserializationSchemathat producesGenericRecordusing the provided reader schema and looks up the writer schema in the Confluent Schema Registry.static ConfluentRegistryAvroDeserializationSchema<org.apache.avro.generic.GenericRecord>forGeneric(org.apache.avro.Schema schema, String url, int identityMapCapacity)CreatesConfluentRegistryAvroDeserializationSchemathat producesGenericRecordusing the provided reader schema and looks up the writer schema in the Confluent Schema Registry.static ConfluentRegistryAvroDeserializationSchema<org.apache.avro.generic.GenericRecord>forGeneric(org.apache.avro.Schema schema, String url, int identityMapCapacity, Map<String,?> registryConfigs)CreatesConfluentRegistryAvroDeserializationSchemathat producesGenericRecordusing the provided reader schema and looks up the writer schema in the Confluent Schema Registry.static ConfluentRegistryAvroDeserializationSchema<org.apache.avro.generic.GenericRecord>forGeneric(org.apache.avro.Schema schema, String url, Map<String,?> registryConfigs)CreatesConfluentRegistryAvroDeserializationSchemathat producesGenericRecordusing the provided reader schema and looks up the writer schema in the Confluent Schema Registry.static <T extends org.apache.avro.specific.SpecificRecord>
ConfluentRegistryAvroDeserializationSchema<T>forSpecific(Class<T> tClass, String url)CreatesAvroDeserializationSchemathat produces classes that were generated from Avro schema and looks up the writer schema in the Confluent Schema Registry.static <T extends org.apache.avro.specific.SpecificRecord>
ConfluentRegistryAvroDeserializationSchema<T>forSpecific(Class<T> tClass, String url, int identityMapCapacity)CreatesAvroDeserializationSchemathat produces classes that were generated from Avro schema and looks up the writer schema in the Confluent Schema Registry.static <T extends org.apache.avro.specific.SpecificRecord>
ConfluentRegistryAvroDeserializationSchema<T>forSpecific(Class<T> tClass, String url, int identityMapCapacity, Map<String,?> registryConfigs)CreatesAvroDeserializationSchemathat produces classes that were generated from Avro schema and looks up the writer schema in the Confluent Schema Registry.static <T extends org.apache.avro.specific.SpecificRecord>
ConfluentRegistryAvroDeserializationSchema<T>forSpecific(Class<T> tClass, String url, Map<String,?> registryConfigs)CreatesAvroDeserializationSchemathat produces classes that were generated from Avro schema and looks up the writer schema in the Confluent Schema Registry.-
Methods inherited from class org.apache.flink.formats.avro.RegistryAvroDeserializationSchema
deserialize, equals, hashCode
-
Methods inherited from class org.apache.flink.formats.avro.AvroDeserializationSchema
forGeneric, forGeneric, forSpecific, forSpecific, getProducedType, isEndOfStream
-
-
-
-
Method Detail
-
forGeneric
public static ConfluentRegistryAvroDeserializationSchema<org.apache.avro.generic.GenericRecord> forGeneric(org.apache.avro.Schema schema, String url)
CreatesConfluentRegistryAvroDeserializationSchemathat producesGenericRecordusing the provided reader schema and looks up the writer schema in the Confluent Schema Registry.By default, this method supports up to 1000 cached schema versions.
- Parameters:
schema- schema of produced recordsurl- url of schema registry to connect- Returns:
- deserialized record in form of
GenericRecord
-
forGeneric
public static ConfluentRegistryAvroDeserializationSchema<org.apache.avro.generic.GenericRecord> forGeneric(org.apache.avro.Schema schema, String url, int identityMapCapacity)
CreatesConfluentRegistryAvroDeserializationSchemathat producesGenericRecordusing the provided reader schema and looks up the writer schema in the Confluent Schema Registry.- Parameters:
schema- schema of produced recordsurl- url of schema registry to connectidentityMapCapacity- maximum number of cached schema versions- Returns:
- deserialized record in form of
GenericRecord
-
forGeneric
public static ConfluentRegistryAvroDeserializationSchema<org.apache.avro.generic.GenericRecord> forGeneric(org.apache.avro.Schema schema, String url, @Nullable Map<String,?> registryConfigs)
CreatesConfluentRegistryAvroDeserializationSchemathat producesGenericRecordusing the provided reader schema and looks up the writer schema in the Confluent Schema Registry.By default, this method supports up to 1000 cached schema versions.
- Parameters:
schema- schema of produced recordsurl- URL of schema registry to connectregistryConfigs- map with additional schema registry configs (for example SSL properties)- Returns:
- deserialized record in form of
GenericRecord
-
forGeneric
public static ConfluentRegistryAvroDeserializationSchema<org.apache.avro.generic.GenericRecord> forGeneric(org.apache.avro.Schema schema, String url, int identityMapCapacity, @Nullable Map<String,?> registryConfigs)
CreatesConfluentRegistryAvroDeserializationSchemathat producesGenericRecordusing the provided reader schema and looks up the writer schema in the Confluent Schema Registry.- Parameters:
schema- schema of produced recordsurl- URL of schema registry to connectidentityMapCapacity- maximum number of cached schema versionsregistryConfigs- map with additional schema registry configs (for example SSL properties)- Returns:
- deserialized record in form of
GenericRecord
-
forSpecific
public static <T extends org.apache.avro.specific.SpecificRecord> ConfluentRegistryAvroDeserializationSchema<T> forSpecific(Class<T> tClass, String url)
CreatesAvroDeserializationSchemathat produces classes that were generated from Avro schema and looks up the writer schema in the Confluent Schema Registry.By default, this method supports up to 1000 cached schema versions.
- Parameters:
tClass- class of record to be producedurl- url of schema registry to connect- Returns:
- deserialized record
-
forSpecific
public static <T extends org.apache.avro.specific.SpecificRecord> ConfluentRegistryAvroDeserializationSchema<T> forSpecific(Class<T> tClass, String url, int identityMapCapacity)
CreatesAvroDeserializationSchemathat produces classes that were generated from Avro schema and looks up the writer schema in the Confluent Schema Registry.- Parameters:
tClass- class of record to be producedurl- url of schema registry to connectidentityMapCapacity- maximum number of cached schema versions- Returns:
- deserialized record
-
forSpecific
public static <T extends org.apache.avro.specific.SpecificRecord> ConfluentRegistryAvroDeserializationSchema<T> forSpecific(Class<T> tClass, String url, @Nullable Map<String,?> registryConfigs)
CreatesAvroDeserializationSchemathat produces classes that were generated from Avro schema and looks up the writer schema in the Confluent Schema Registry.By default, this method supports up to 1000 cached schema versions.
- Parameters:
tClass- class of record to be producedurl- URL of schema registry to connectregistryConfigs- map with additional schema registry configs (for example SSL properties)- Returns:
- deserialized record
-
forSpecific
public static <T extends org.apache.avro.specific.SpecificRecord> ConfluentRegistryAvroDeserializationSchema<T> forSpecific(Class<T> tClass, String url, int identityMapCapacity, @Nullable Map<String,?> registryConfigs)
CreatesAvroDeserializationSchemathat produces classes that were generated from Avro schema and looks up the writer schema in the Confluent Schema Registry.- Parameters:
tClass- class of record to be producedurl- URL of schema registry to connectidentityMapCapacity- maximum number of cached schema versionsregistryConfigs- map with additional schema registry configs (for example SSL properties)- Returns:
- deserialized record
-
-