Interface DeserializationSchema<T>
-
- Type Parameters:
T- The type created by the deserialization schema.
- All Superinterfaces:
org.apache.flink.api.common.serialization.DeserializationSchema<T>,org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>,Serializable
- All Known Implementing Classes:
AbstractDeserializationSchema,SimpleStringSchema,TypeInformationSerializationSchema
@Public @Deprecated public interface DeserializationSchema<T> extends org.apache.flink.api.common.serialization.DeserializationSchema<T>, Serializable, org.apache.flink.api.java.typeutils.ResultTypeQueryable<T>
Deprecated.UseDeserializationSchemainstead.The deserialization schema describes how to turn the byte messages delivered by certain data sources (for example Apache Kafka) into data types (Java/Scala objects) that are processed by Flink.Note: In most cases, one should start from
AbstractDeserializationSchema, which takes care of producing the return type information automatically.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Tdeserialize(byte[] message)Deprecated.Deserializes the byte message.booleanisEndOfStream(T nextElement)Deprecated.Method to decide whether the element signals the end of the stream.
-
-
-
Method Detail
-
deserialize
T deserialize(byte[] message) throws IOException
Deprecated.Deserializes the byte message.- Specified by:
deserializein interfaceorg.apache.flink.api.common.serialization.DeserializationSchema<T>- Parameters:
message- The message, as a byte array.- Returns:
- The deserialized message as an object (null if the message cannot be deserialized).
- Throws:
IOException
-
isEndOfStream
boolean isEndOfStream(T nextElement)
Deprecated.Method to decide whether the element signals the end of the stream. If true is returned the element won't be emitted.- Specified by:
isEndOfStreamin interfaceorg.apache.flink.api.common.serialization.DeserializationSchema<T>- Parameters:
nextElement- The element to test for the end-of-stream signal.- Returns:
- True, if the element signals end of stream, false otherwise.
-
-