T
- The type created by the keyed deserialization schema.@PublicEvolving public interface KeyedDeserializationSchema<T> extends Serializable, 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.
|
getProducedType
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 from.offset
- the offset of the message in the original source (for example the Kafka offset).IOException
boolean isEndOfStream(T nextElement)
nextElement
- The element to test for the end-of-stream signal.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.