T
- The type to be serialized.@Deprecated @PublicEvolving public interface KeyedSerializationSchema<T> extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getTargetTopic(T element)
Deprecated.
Optional method to determine the target topic for the element.
|
byte[] |
serializeKey(T element)
Deprecated.
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)
Deprecated.
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–2021 The Apache Software Foundation. All rights reserved.