Object - kafka : Deserializer

Represents a Kafka deserializer object. This object can be used to create custom deserializers for Ballerina Kafka consumers.

Methods

Closes the deserialization process.

Deserializes the provided data.

close

()

Closes the deserialization process. This function runs after the deserialization process is done.

deserialize

(byte[] data)

returns any

Deserializes the provided data. Implement this to deserialize a byte[] and return any data type.

Parameters

  • data byte[]
  • Data, which should be deserialized

  • Return Type

    (any)
  • The deserialized value