Class JsonDeserializer
java.lang.Object
com.amazonaws.services.schemaregistry.deserializers.json.JsonDeserializer
- All Implemented Interfaces:
GlueSchemaRegistryDataFormatDeserializer
Json specific de-serializer responsible for handling the Json data format
specific deserialization behavior.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor accepting various dependencies. -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(@NonNull ByteBuffer buffer, @NonNull Schema schemaObject) Deserialize the bytes to the original JSON message given the schema retrieved from the schema registry.
-
Constructor Details
-
JsonDeserializer
Constructor accepting various dependencies.- Parameters:
configs- configuration elements
-
-
Method Details
-
deserialize
public Object deserialize(@NonNull @NonNull ByteBuffer buffer, @NonNull @NonNull Schema schemaObject) Deserialize the bytes to the original JSON message given the schema retrieved from the schema registry.- Specified by:
deserializein interfaceGlueSchemaRegistryDataFormatDeserializer- Parameters:
buffer- data to be de-serializedschemaObject- JSONSchema- Returns:
- de-serialized object
- Throws:
AWSSchemaRegistryException- Exception during de-serialization
-