public class Serdes
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
Serdes.ByteArraySerde |
|
static class |
Serdes.ByteBufferSerde |
|
static class |
Serdes.BytesSerde |
|
static class |
Serdes.DoubleSerde |
|
static class |
Serdes.FloatSerde |
|
static class |
Serdes.IntegerSerde |
|
static class |
Serdes.LongSerde |
|
static class |
Serdes.ShortSerde |
|
static class |
Serdes.StringSerde |
|
protected static class |
Serdes.WrapperSerde<T> |
Constructor | Description |
---|---|
Serdes() |
Modifier and Type | Method | Description |
---|---|---|
static Serde<byte[]> |
ByteArray() |
|
static Serde<java.nio.ByteBuffer> |
ByteBuffer() |
|
static Serde<org.apache.kafka.common.utils.Bytes> |
Bytes() |
|
static Serde<java.lang.Double> |
Double() |
|
static Serde<java.lang.Float> |
Float() |
|
static Serde<java.lang.Integer> |
Integer() |
|
static Serde<java.lang.Long> |
Long() |
|
static <T> Serde<T> |
serdeFrom(java.lang.Class<T> type) |
|
static <T> Serde<T> |
serdeFrom(Serializer<T> serializer,
Deserializer<T> deserializer) |
Construct a serde object from separate serializer and deserializer
|
static Serde<java.lang.Short> |
Short() |
|
static Serde<java.lang.String> |
String() |
public static <T> Serde<T> serdeFrom(java.lang.Class<T> type)
public static <T> Serde<T> serdeFrom(Serializer<T> serializer, Deserializer<T> deserializer)
serializer
- must not be null.deserializer
- must not be null.public static Serde<java.lang.Long> Long()
public static Serde<java.lang.Integer> Integer()
public static Serde<java.lang.Short> Short()
public static Serde<java.lang.Float> Float()
public static Serde<java.lang.Double> Double()
public static Serde<java.lang.String> String()
public static Serde<java.nio.ByteBuffer> ByteBuffer()
public static Serde<org.apache.kafka.common.utils.Bytes> Bytes()
public static Serde<byte[]> ByteArray()