T
- type of record it producespublic class ConfluentRegistryAvroDeserializationSchema<T> extends RegistryAvroDeserializationSchema<T>
SchemaCoder
that
uses Confluent Schema Registry.DeserializationSchema.InitializationContext
Modifier and Type | Method and Description |
---|---|
static ConfluentRegistryAvroDeserializationSchema<org.apache.avro.generic.GenericRecord> |
forGeneric(org.apache.avro.Schema schema,
String url)
Creates
ConfluentRegistryAvroDeserializationSchema that produces GenericRecord using 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)
Creates
ConfluentRegistryAvroDeserializationSchema that produces GenericRecord using 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)
Creates
ConfluentRegistryAvroDeserializationSchema that produces GenericRecord using 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)
Creates
ConfluentRegistryAvroDeserializationSchema that produces GenericRecord using the provided reader schema and looks up the writer schema in the
Confluent Schema Registry. |
static <T extends org.apache.avro.specific.SpecificRecord> |
forSpecific(Class<T> tClass,
String url)
Creates
AvroDeserializationSchema that 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> |
forSpecific(Class<T> tClass,
String url,
int identityMapCapacity)
Creates
AvroDeserializationSchema that 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> |
forSpecific(Class<T> tClass,
String url,
int identityMapCapacity,
Map<String,?> registryConfigs)
Creates
AvroDeserializationSchema that 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> |
forSpecific(Class<T> tClass,
String url,
Map<String,?> registryConfigs)
Creates
AvroDeserializationSchema that produces classes that were generated from Avro
schema and looks up the writer schema in the Confluent Schema Registry. |
deserialize, equals, hashCode
forGeneric, forGeneric, forSpecific, forSpecific, getProducedType, isEndOfStream
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
deserialize, open
public static ConfluentRegistryAvroDeserializationSchema<org.apache.avro.generic.GenericRecord> forGeneric(org.apache.avro.Schema schema, String url)
ConfluentRegistryAvroDeserializationSchema
that produces GenericRecord
using 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.
schema
- schema of produced recordsurl
- url of schema registry to connectGenericRecord
public static ConfluentRegistryAvroDeserializationSchema<org.apache.avro.generic.GenericRecord> forGeneric(org.apache.avro.Schema schema, String url, int identityMapCapacity)
ConfluentRegistryAvroDeserializationSchema
that produces GenericRecord
using the provided reader schema and looks up the writer schema in the
Confluent Schema Registry.schema
- schema of produced recordsurl
- url of schema registry to connectidentityMapCapacity
- maximum number of cached schema versionsGenericRecord
public static ConfluentRegistryAvroDeserializationSchema<org.apache.avro.generic.GenericRecord> forGeneric(org.apache.avro.Schema schema, String url, @Nullable Map<String,?> registryConfigs)
ConfluentRegistryAvroDeserializationSchema
that produces GenericRecord
using 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.
schema
- schema of produced recordsurl
- URL of schema registry to connectregistryConfigs
- map with additional schema registry configs (for example SSL
properties)GenericRecord
public static ConfluentRegistryAvroDeserializationSchema<org.apache.avro.generic.GenericRecord> forGeneric(org.apache.avro.Schema schema, String url, int identityMapCapacity, @Nullable Map<String,?> registryConfigs)
ConfluentRegistryAvroDeserializationSchema
that produces GenericRecord
using the provided reader schema and looks up the writer schema in the
Confluent Schema Registry.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)GenericRecord
public static <T extends org.apache.avro.specific.SpecificRecord> ConfluentRegistryAvroDeserializationSchema<T> forSpecific(Class<T> tClass, String url)
AvroDeserializationSchema
that 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.
tClass
- class of record to be producedurl
- url of schema registry to connectpublic static <T extends org.apache.avro.specific.SpecificRecord> ConfluentRegistryAvroDeserializationSchema<T> forSpecific(Class<T> tClass, String url, int identityMapCapacity)
AvroDeserializationSchema
that produces classes that were generated from Avro
schema and looks up the writer schema in the Confluent Schema Registry.tClass
- class of record to be producedurl
- url of schema registry to connectidentityMapCapacity
- maximum number of cached schema versionspublic static <T extends org.apache.avro.specific.SpecificRecord> ConfluentRegistryAvroDeserializationSchema<T> forSpecific(Class<T> tClass, String url, @Nullable Map<String,?> registryConfigs)
AvroDeserializationSchema
that 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.
tClass
- class of record to be producedurl
- URL of schema registry to connectregistryConfigs
- map with additional schema registry configs (for example SSL
properties)public static <T extends org.apache.avro.specific.SpecificRecord> ConfluentRegistryAvroDeserializationSchema<T> forSpecific(Class<T> tClass, String url, int identityMapCapacity, @Nullable Map<String,?> registryConfigs)
AvroDeserializationSchema
that produces classes that were generated from Avro
schema and looks up the writer schema in the Confluent Schema Registry.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)Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.