public class JavaDefaultStringSchema extends Object implements DeserializationSchema<String>, SerializationSchema<String,byte[]>
Constructor and Description |
---|
JavaDefaultStringSchema() |
Modifier and Type | Method and Description |
---|---|
String |
deserialize(byte[] message)
Deserializes the byte message.
|
TypeInformation<String> |
getProducedType() |
boolean |
isEndOfStream(String nextElement)
Method to decide whether the element signals the end of the stream.
|
byte[] |
serialize(String element)
Serializes the incoming element to a specified type.
|
public boolean isEndOfStream(String nextElement)
DeserializationSchema
isEndOfStream
in interface DeserializationSchema<String>
nextElement
- The element to test for the end-of-stream signal.public byte[] serialize(String element)
SerializationSchema
serialize
in interface SerializationSchema<String,byte[]>
element
- The incoming element to be serializedpublic String deserialize(byte[] message)
DeserializationSchema
deserialize
in interface DeserializationSchema<String>
message
- The message, as a byte array.public TypeInformation<String> getProducedType()
getProducedType
in interface org.apache.flink.api.java.typeutils.ResultTypeQueryable<String>
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.