T - The type to be serialized.public interface KeyedSerializationSchema<T> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
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–2016 The Apache Software Foundation. All rights reserved.