T - The object type@Incubating public class JsonSerde<T> extends Object implements org.apache.kafka.common.serialization.Serde<T>
Serde that (de-)serializes JSON. The Deserializer supports Debezium's CDC message format, i.e. for
such messages the values to be deserialized will be unwrapped from the id field (for keys) or from the
after field.| Modifier and Type | Class and Description |
|---|---|
private class |
JsonSerde.JsonDeserializer |
private class |
JsonSerde.JsonSerializer |
| Modifier and Type | Field and Description |
|---|---|
private JsonSerdeConfig |
config |
private boolean |
isKey |
private com.fasterxml.jackson.databind.ObjectMapper |
mapper |
private static String |
PAYLOAD_FIELD |
private com.fasterxml.jackson.databind.ObjectReader |
reader |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(Map<String,?> configs,
boolean isKey) |
org.apache.kafka.common.serialization.Deserializer<T> |
deserializer() |
org.apache.kafka.common.serialization.Serializer<T> |
serializer() |
private static final String PAYLOAD_FIELD
private final com.fasterxml.jackson.databind.ObjectMapper mapper
private com.fasterxml.jackson.databind.ObjectReader reader
private boolean isKey
private JsonSerdeConfig config
public void configure(Map<String,?> configs, boolean isKey)
configure in interface org.apache.kafka.common.serialization.Serde<T>public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.kafka.common.serialization.Serde<T>public org.apache.kafka.common.serialization.Serializer<T> serializer()
serializer in interface org.apache.kafka.common.serialization.Serde<T>Copyright © 2021 JBoss by Red Hat. All rights reserved.