T - the type to be serialized@PublicEvolving
public class GlueSchemaRegistryAvroSerializationSchema<T>
extends org.apache.flink.formats.avro.RegistryAvroSerializationSchema<T>
| Modifier | Constructor and Description |
|---|---|
protected |
GlueSchemaRegistryAvroSerializationSchema(Class<T> recordClazz,
org.apache.avro.Schema reader,
org.apache.flink.formats.avro.SchemaCoder schemaCoder) |
| Modifier and Type | Method and Description |
|---|---|
static GlueSchemaRegistryAvroSerializationSchema<org.apache.avro.generic.GenericRecord> |
forGeneric(org.apache.avro.Schema schema,
String transportName,
Map<String,Object> configs)
Creates
GlueSchemaRegistryAvroSerializationSchema that serializes GenericRecord using provided schema. |
static <T extends org.apache.avro.specific.SpecificRecord> |
forSpecific(Class<T> clazz,
String transportName,
Map<String,Object> configs)
Creates
GlueSchemaRegistryAvroSerializationSchema that serializes SpecificRecord using provided schema. |
byte[] |
serialize(T object)
Serializes the incoming element to a byte array containing bytes of AWS Glue Schema registry
information.
|
checkAvroInitialized, equals, forGeneric, forSpecific, hashCodeforGeneric, forSpecific, getDatumWriter, getEncoder, getOutputStream, getSchemapublic static GlueSchemaRegistryAvroSerializationSchema<org.apache.avro.generic.GenericRecord> forGeneric(org.apache.avro.Schema schema, String transportName, Map<String,Object> configs)
GlueSchemaRegistryAvroSerializationSchema that serializes GenericRecord using provided schema.schema - the schema that will be used for serializationtransportName - topic name or stream name etc.configs - configuration map of AWS Glue Schema Registrypublic static <T extends org.apache.avro.specific.SpecificRecord> GlueSchemaRegistryAvroSerializationSchema<T> forSpecific(Class<T> clazz, String transportName, Map<String,Object> configs)
GlueSchemaRegistryAvroSerializationSchema that serializes SpecificRecord using provided schema.clazz - the type to be serializedtransportName - topic name or stream name etc.configs - configuration map of Amazon Schema Registrypublic byte[] serialize(T object)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.