- Companion:
- class
- Source:
- Deserializer.scala
Value members
Concrete methods
Creates a new Deserializer which deserializes
all bytes to the specified value of type A
.
Creates a new Deserializer which deserializes
all bytes to the specified value of type A
.
- Source:
- Deserializer.scala
Creates a new Deserializer which delegates deserialization
to the specified Kafka Deserializer
. Note that the close
and configure
functions won't be called for the delegate.
It is assumed the delegate deserialize
function is pure.
If it's not pure, then use suspend
after delegate
,
so the impure behaviours can be captured properly.
Creates a new Deserializer which delegates deserialization
to the specified Kafka Deserializer
. Note that the close
and configure
functions won't be called for the delegate.
It is assumed the delegate deserialize
function is pure.
If it's not pure, then use suspend
after delegate
,
so the impure behaviours can be captured properly.
- Source:
- Deserializer.scala
Creates a new Deserializer which always fails
deserialization with the specified exception e
.
Creates a new Deserializer which always fails
deserialization with the specified exception e
.
- Source:
- Deserializer.scala
Creates a new Deserializer which always fails deserialization with a DeserializationException using the specified message.
Creates a new Deserializer which always fails deserialization with a DeserializationException using the specified message.
- Source:
- Deserializer.scala
Creates a new Deserializer which can use different Deserializers depending on the record headers.
Creates a new Deserializer which can use different Deserializers depending on the record headers.
- Source:
- Deserializer.scala
Creates a new Deserializer from the specified function. Use lift instead if the deserializer doesn't need access to the Kafka topic name or record headers.
Creates a new Deserializer from the specified function. Use lift instead if the deserializer doesn't need access to the Kafka topic name or record headers.
- Source:
- Deserializer.scala
Creates a new Deserializer from the specified function, ignoring from which Kafka topic the bytes came and any record headers. Use instance instead if the deserializer needs access to the Kafka topic name or the record headers.
Creates a new Deserializer from the specified function, ignoring from which Kafka topic the bytes came and any record headers. Use instance instead if the deserializer needs access to the Kafka topic name or the record headers.
- Source:
- Deserializer.scala
Creates a new Deserializer which deserializes String
values using the specified Charset
. Note that the
default String
deserializer uses UTF-8
.
Creates a new Deserializer which deserializes String
values using the specified Charset
. Note that the
default String
deserializer uses UTF-8
.
- Source:
- Deserializer.scala
Creates a new Deserializer which can use different Deserializers depending on the Kafka topic name from which the serialized bytes came.
Creates a new Deserializer which can use different Deserializers depending on the Kafka topic name from which the serialized bytes came.
- Source:
- Deserializer.scala
Creates a new Deserializer which deserializes String
values using the specified Charset
as UUID
s. Note that
the default UUID
deserializer uses UTF-8
.
Creates a new Deserializer which deserializes String
values using the specified Charset
as UUID
s. Note that
the default UUID
deserializer uses UTF-8
.
- Source:
- Deserializer.scala
Implicits
Implicits
The attempt Deserializer try to deserialize to type A
,
When it fails returns Left
containing the exception, otherwise returns Right
with the value A
The attempt Deserializer try to deserialize to type A
,
When it fails returns Left
containing the exception, otherwise returns Right
with the value A
- Source:
- Deserializer.scala
The identity Deserializer, which does not perform any kind of deserialization, simply using the input bytes as the output.
The identity Deserializer, which does not perform any kind of deserialization, simply using the input bytes as the output.
- Source:
- Deserializer.scala
- Source:
- Deserializer.scala
The option Deserializer returns None
when the bytes are
null
, and otherwise deserializes using the deserializer for
the type A
, wrapping the result in Some
.
The option Deserializer returns None
when the bytes are
null
, and otherwise deserializes using the deserializer for
the type A
, wrapping the result in Some
.
- Source:
- Deserializer.scala