T - The type created by the deserialization schema.public class KeyedDeserializationSchemaWrapper<T> extends Object implements KeyedDeserializationSchema<T>
| Constructor and Description |
|---|
KeyedDeserializationSchemaWrapper(DeserializationSchema<T> deserializationSchema) |
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(byte[] messageKey,
byte[] message,
String topic,
int partition,
long offset)
Deserializes the byte message.
|
org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getProducedType() |
boolean |
isEndOfStream(T nextElement)
Method to decide whether the element signals the end of the stream.
|
public KeyedDeserializationSchemaWrapper(DeserializationSchema<T> deserializationSchema)
public T deserialize(byte[] messageKey, byte[] message, String topic, int partition, long offset) throws IOException
KeyedDeserializationSchemadeserialize in interface KeyedDeserializationSchema<T>messageKey - the key as a byte array (null if no key has been set)message - The message, as a byte array. (null if the message was empty or deleted)partition - The partition the message has originated fromoffset - the offset of the message in the original source (for example the Kafka offset) @return The deserialized message as an object.IOExceptionpublic boolean isEndOfStream(T nextElement)
KeyedDeserializationSchemaisEndOfStream in interface KeyedDeserializationSchema<T>nextElement - The element to test for the end-of-stream signal.Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.