T
- The type to be serialized.@PublicEvolving public interface KeyedSerializationSchema<T> extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getTargetTopic(T element)
Optional method to determine the target topic for the element.
|
byte[] |
serializeKey(T element)
Serializes the key of the incoming element to a byte array
This method might return null if no key is available.
|
byte[] |
serializeValue(T element)
Serializes the value of the incoming element to a byte array.
|
byte[] serializeKey(T element)
element
- The incoming element to be serializedbyte[] serializeValue(T element)
element
- The incoming element to be serializedCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.