Class KeyedSerializationSchemaWrapper<T>
java.lang.Object
org.apache.flink.streaming.connectors.kafka.internals.KeyedSerializationSchemaWrapper<T>
- Type Parameters:
T- The type to serialize
- All Implemented Interfaces:
Serializable,KeyedSerializationSchema<T>
@Internal
@Deprecated
public class KeyedSerializationSchemaWrapper<T>
extends Object
implements KeyedSerializationSchema<T>
Deprecated.
A simple wrapper for using the SerializationSchema with the KeyedSerializationSchema interface.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionKeyedSerializationSchemaWrapper(org.apache.flink.api.common.serialization.SerializationSchema<T> serializationSchema) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.api.common.serialization.SerializationSchema<T> Deprecated.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.
-
Constructor Details
-
KeyedSerializationSchemaWrapper
public KeyedSerializationSchemaWrapper(org.apache.flink.api.common.serialization.SerializationSchema<T> serializationSchema) Deprecated.
-
-
Method Details
-
getSerializationSchema
Deprecated. -
serializeKey
Deprecated.Description copied from interface:KeyedSerializationSchemaSerializes the key of the incoming element to a byte array This method might return null if no key is available.- Specified by:
serializeKeyin interfaceKeyedSerializationSchema<T>- Parameters:
element- The incoming element to be serialized- Returns:
- the key of the element as a byte array
-
serializeValue
Deprecated.Description copied from interface:KeyedSerializationSchemaSerializes the value of the incoming element to a byte array.- Specified by:
serializeValuein interfaceKeyedSerializationSchema<T>- Parameters:
element- The incoming element to be serialized- Returns:
- the value of the element as a byte array
-
getTargetTopic
Deprecated.Description copied from interface:KeyedSerializationSchemaOptional method to determine the target topic for the element.- Specified by:
getTargetTopicin interfaceKeyedSerializationSchema<T>- Parameters:
element- Incoming element to determine the target topic from- Returns:
- null or the target topic
-