public class SimpleStringSchema extends Object implements DeserializationSchema<String>, SerializationSchema<String,String>
| Constructor and Description |
|---|
SimpleStringSchema() |
| Modifier and Type | Method and Description |
|---|---|
String |
deserialize(byte[] message)
Deserializes the incoming data.
|
org.apache.flink.api.common.typeinfo.TypeInformation<String> |
getProducedType() |
boolean |
isEndOfStream(String nextElement)
Method to decide whether the element signals the end of the stream.
|
String |
serialize(String element)
Serializes the incoming element to a specified type.
|
public String deserialize(byte[] message)
DeserializationSchemadeserialize in interface DeserializationSchema<String>message - The incoming message in a byte arraypublic boolean isEndOfStream(String nextElement)
DeserializationSchemaisEndOfStream in interface DeserializationSchema<String>nextElement - The element to test for end signalpublic String serialize(String element)
SerializationSchemaserialize in interface SerializationSchema<String,String>element - The incoming element to be serializedCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.