T - The type to serializepublic class KeyedSerializationSchemaWrapper<T> extends Object implements KeyedSerializationSchema<T>
| Constructor and Description |
|---|
KeyedSerializationSchemaWrapper(SerializationSchema<T> serializationSchema) |
| 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
|
public KeyedSerializationSchemaWrapper(SerializationSchema<T> serializationSchema)
public byte[] serializeKey(T element)
KeyedSerializationSchemaserializeKey in interface KeyedSerializationSchema<T>element - The incoming element to be serializedpublic byte[] serializeValue(T element)
KeyedSerializationSchemaserializeValue in interface KeyedSerializationSchema<T>element - The incoming element to be serializedCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.