Class SchemaRegistrySerializer
java.lang.Object
io.confluent.kafka.schemaregistry.storage.serialization.SchemaRegistrySerializer
- All Implemented Interfaces:
Serializer<SchemaRegistryKey,,SchemaRegistryValue> Closeable,Serializable,AutoCloseable,org.apache.kafka.common.Configurable
public class SchemaRegistrySerializer
extends Object
implements Serializer<SchemaRegistryKey,SchemaRegistryValue>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this serializervoiddeserializeKey(byte[] key) deserializeValue(SchemaRegistryKey key, byte[] value) byte[]byte[]
-
Constructor Details
-
SchemaRegistrySerializer
public SchemaRegistrySerializer()
-
-
Method Details
-
serializeKey
- Specified by:
serializeKeyin interfaceSerializer<SchemaRegistryKey,SchemaRegistryValue> - Parameters:
key- Typed key- Returns:
- bytes of the serialized key
- Throws:
SerializationException
-
serializeValue
- Specified by:
serializeValuein interfaceSerializer<SchemaRegistryKey,SchemaRegistryValue> - Parameters:
value- Typed value- Returns:
- bytes of the serialized value
- Throws:
SerializationException
-
deserializeKey
- Specified by:
deserializeKeyin interfaceSerializer<SchemaRegistryKey,SchemaRegistryValue> - Parameters:
key- Bytes of the serialized key- Returns:
- Typed deserialized key
- Throws:
SerializationException
-
deserializeValue
public SchemaRegistryValue deserializeValue(SchemaRegistryKey key, byte[] value) throws SerializationException - Specified by:
deserializeValuein interfaceSerializer<SchemaRegistryKey,SchemaRegistryValue> - Parameters:
key- Typed key corresponding to this valuevalue- Bytes of the serialized value- Returns:
- Typed deserialized value. Must be one of
ConfigValueorModeValueorSchemaValueorDeleteSubjectValueorClearSubjectValue - Throws:
SerializationException
-
close
public void close()Description copied from interface:SerializerClose this serializer- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceSerializer<SchemaRegistryKey,SchemaRegistryValue>
-
configure
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable
-