T - The type created by the keyed deserialization schema.public interface KeyedDeserializationSchema<T> extends Serializable, org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(byte[] messageKey,
byte[] message,
String topic,
int partition,
long offset)
Deserializes the byte message.
|
boolean |
isEndOfStream(T nextElement)
Method to decide whether the element signals the end of the stream.
|
T deserialize(byte[] messageKey, byte[] message, String topic, int partition, long offset) throws IOException
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.IOExceptionboolean isEndOfStream(T nextElement)
nextElement - The element to test for the end-of-stream signal.Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.