Hi all! I’m trying to write a custom serdes to des...
# serialization
a
Hi all! I’m trying to write a custom serdes to deserialize an Avro record to
BigDecimal
that is sent as a
java.nio.ByteBuffer
(with logical type of
org.apache.kafka.connect.data.Decimal
). I can get it from
ByteBuffer
to
BigDecimal
, but I’m trying to figure out how to get the
ByteBuffer
or
ByteArray
from the decoder. My initial thought was to use
decoder.decodeString().encodeToByteArray()
. Does anyone have a better idea to get it (since decoder has a limited API - it has
Decoder::decodeByte()
but that only grabs a single
Byte
.