public class OrderedKeyUberSerdeDelegate<T> extends Object implements OrderedKeyUberSerde<T>
MAGIC_BYTE_ORDERED_KEY, MAGIC_BYTE_PROTOBUF, MAGIC_BYTE_STRING
Constructor and Description |
---|
OrderedKeyUberSerdeDelegate(OrderedKeyUberSerde<T> delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this deserializer.
|
void |
configure(Map<String,?> map,
boolean b)
Configure this class, which will configure the underlying serializer and deserializer.
|
org.apache.kafka.common.utils.Bytes |
deserialize(byte[] bytes) |
org.apache.kafka.common.utils.Bytes |
deserialize(String s,
byte[] bytes) |
org.apache.kafka.common.serialization.Deserializer<org.apache.kafka.common.utils.Bytes> |
deserializer() |
byte[] |
fromJson(String json) |
org.apache.kafka.common.utils.Bytes |
key(T message) |
int |
numFields() |
OrderedKeyUberSerde<T> |
prefixKeySerde(int numFields) |
byte[] |
serialize(org.apache.kafka.common.utils.Bytes message) |
byte[] |
serialize(String s,
org.apache.kafka.common.utils.Bytes bytes) |
org.apache.kafka.common.serialization.Serializer<org.apache.kafka.common.utils.Bytes> |
serializer() |
String |
toHexString(org.apache.kafka.common.utils.Bytes key) |
String |
toJson(org.apache.kafka.common.utils.Bytes message) |
T |
toProto(org.apache.kafka.common.utils.Bytes key) |
Class<org.apache.kafka.common.utils.Bytes> |
type() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public OrderedKeyUberSerdeDelegate(OrderedKeyUberSerde<T> delegate)
public OrderedKeyUberSerde<T> prefixKeySerde(int numFields)
prefixKeySerde
in interface OrderedKeyUberSerde<T>
public int numFields()
numFields
in interface OrderedKeyUberSerde<T>
public org.apache.kafka.common.utils.Bytes key(T message)
key
in interface OrderedKeyUberSerde<T>
public T toProto(org.apache.kafka.common.utils.Bytes key)
toProto
in interface OrderedKeyUberSerde<T>
public String toHexString(org.apache.kafka.common.utils.Bytes key)
toHexString
in interface OrderedKeyUberSerde<T>
public Class<org.apache.kafka.common.utils.Bytes> type()
public org.apache.kafka.common.utils.Bytes deserialize(byte[] bytes)
deserialize
in interface SerdeWithJson<org.apache.kafka.common.utils.Bytes>
public org.apache.kafka.common.utils.Bytes deserialize(String s, byte[] bytes)
deserialize
in interface org.apache.kafka.common.serialization.Deserializer<org.apache.kafka.common.utils.Bytes>
public byte[] serialize(org.apache.kafka.common.utils.Bytes message)
serialize
in interface SerdeWithJson<org.apache.kafka.common.utils.Bytes>
public byte[] serialize(String s, org.apache.kafka.common.utils.Bytes bytes)
serialize
in interface org.apache.kafka.common.serialization.Serializer<org.apache.kafka.common.utils.Bytes>
public byte[] fromJson(String json)
fromJson
in interface SerdeWithJson<org.apache.kafka.common.utils.Bytes>
public String toJson(org.apache.kafka.common.utils.Bytes message)
toJson
in interface SerdeWithJson<org.apache.kafka.common.utils.Bytes>
public void configure(Map<String,?> map, boolean b)
UberSerde
configure
in interface UberSerde<org.apache.kafka.common.utils.Bytes>
configure
in interface org.apache.kafka.common.serialization.Deserializer<org.apache.kafka.common.utils.Bytes>
configure
in interface org.apache.kafka.common.serialization.Serde<org.apache.kafka.common.utils.Bytes>
configure
in interface org.apache.kafka.common.serialization.Serializer<org.apache.kafka.common.utils.Bytes>
map
- configs in key/value pairsb
- whether is for key or valuepublic void close()
UberSerde
This method must be idempotent as it may be called multiple times.
close
in interface UberSerde<org.apache.kafka.common.utils.Bytes>
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.apache.kafka.common.serialization.Deserializer<org.apache.kafka.common.utils.Bytes>
close
in interface org.apache.kafka.common.serialization.Serde<org.apache.kafka.common.utils.Bytes>
close
in interface org.apache.kafka.common.serialization.Serializer<org.apache.kafka.common.utils.Bytes>
public org.apache.kafka.common.serialization.Serializer<org.apache.kafka.common.utils.Bytes> serializer()
serializer
in interface org.apache.kafka.common.serialization.Serde<org.apache.kafka.common.utils.Bytes>
public org.apache.kafka.common.serialization.Deserializer<org.apache.kafka.common.utils.Bytes> deserializer()
deserializer
in interface org.apache.kafka.common.serialization.Serde<org.apache.kafka.common.utils.Bytes>