T - The type created by the deserialization schema.@Public public interface DeserializationSchema<T> extends Serializable, ResultTypeQueryable<T>
In addition, the DeserializationSchema describes the produced type (ResultTypeQueryable.getProducedType()),
which lets Flink create internal serializers and structures to handle the type.
Note: In most cases, one should start from AbstractDeserializationSchema, which
takes care of producing the return type information automatically.
A DeserializationSchema must be Serializable because its instances are often part of
an operator or transformation function.
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(byte[] message)
Deserializes the byte message.
|
boolean |
isEndOfStream(T nextElement)
Method to decide whether the element signals the end of the stream.
|
getProducedTypeT deserialize(byte[] message) throws IOException
message - The message, as a byte array.IOExceptionboolean isEndOfStream(T nextElement)
nextElement - The element to test for the end-of-stream signal.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.