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