Class GlueSchemaRegistrySerializerImpl
- java.lang.Object
-
- com.amazonaws.services.schemaregistry.serializers.GlueSchemaRegistrySerializerImpl
-
- All Implemented Interfaces:
GlueSchemaRegistrySerializer
public class GlueSchemaRegistrySerializerImpl extends Object implements GlueSchemaRegistrySerializer
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGlueSchemaRegistrySerializerImpl(GlueSchemaRegistrySerializationFacade glueSchemaRegistrySerializationFacade)GlueSchemaRegistrySerializerImpl(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider awsCredentialsProvider, GlueSchemaRegistryConfiguration glueSchemaRegistryConfiguration)Initialize an instance of GlueSchemaRegistrySerializer with .GlueSchemaRegistrySerializerImpl(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider awsCredentialsProvider, String region)Initialize an instance of GlueSchemaRegistrySerializer with Region.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]encode(String transportName, Schema schema, byte[] data)Converts the given data byte array to be Glue Schema Registry compatible byte array.
-
-
-
Constructor Detail
-
GlueSchemaRegistrySerializerImpl
public GlueSchemaRegistrySerializerImpl(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider awsCredentialsProvider, String region)Initialize an instance of GlueSchemaRegistrySerializer with Region.- Parameters:
awsCredentialsProvider-AwsCredentialsProvider
-
GlueSchemaRegistrySerializerImpl
public GlueSchemaRegistrySerializerImpl(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider awsCredentialsProvider, GlueSchemaRegistryConfiguration glueSchemaRegistryConfiguration)Initialize an instance of GlueSchemaRegistrySerializer with . See documentation for supported configuration entries.- Parameters:
awsCredentialsProvider-AwsCredentialsProviderglueSchemaRegistryConfiguration-GlueSchemaRegistryConfigurationConfiguration object.
-
GlueSchemaRegistrySerializerImpl
protected GlueSchemaRegistrySerializerImpl(GlueSchemaRegistrySerializationFacade glueSchemaRegistrySerializationFacade)
-
-
Method Detail
-
encode
public byte[] encode(@Nullable String transportName, Schema schema, byte[] data)
Converts the given data byte array to be Glue Schema Registry compatible byte array. If the auto-registration setting is turned on, a new schema definitions will be automatically registered. Note that the encoded byte array can only be decoded by a Glue Schema Registry de-serializer (GlueSchemaRegistryDeserializer- Specified by:
encodein interfaceGlueSchemaRegistrySerializer- Parameters:
transportName-StringName of the transport channel for the message. This will be used to add metadata to schema. If null, "default-stream" will be used.schema-SchemaA schema object.data- byte array of data that needs to be encoded.- Returns:
- Encoded Glue Schema Registry compatible byte array.
-
-