Package io.debezium.serde.json
Class JsonSerde.JsonDeserializer
- java.lang.Object
-
- io.debezium.serde.json.JsonSerde.JsonDeserializer
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.kafka.common.serialization.Deserializer<T>
private final class JsonSerde.JsonDeserializer extends Object implements org.apache.kafka.common.serialization.Deserializer<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
JsonDeserializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
configure(Map<String,?> configs, boolean isKey)
T
deserialize(String topic, byte[] data)
private T
readKey(com.fasterxml.jackson.databind.JsonNode node)
private T
readValue(com.fasterxml.jackson.databind.JsonNode node)
-
-
-
Method Detail
-
configure
public void configure(Map<String,?> configs, boolean isKey)
- Specified by:
configure
in interfaceorg.apache.kafka.common.serialization.Deserializer<T>
-
deserialize
public T deserialize(String topic, byte[] data)
- Specified by:
deserialize
in interfaceorg.apache.kafka.common.serialization.Deserializer<T>
-
readValue
private T readValue(com.fasterxml.jackson.databind.JsonNode node) throws IOException
- Throws:
IOException
-
readKey
private T readKey(com.fasterxml.jackson.databind.JsonNode node) throws IOException
- Throws:
IOException
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.apache.kafka.common.serialization.Deserializer<T>
-
-