public class RawSchema extends Object implements DeserializationSchema<byte[]>, SerializationSchema<byte[],byte[]>
| Constructor and Description |
|---|
RawSchema() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
deserialize(byte[] message)
Deserializes the incoming data.
|
org.apache.flink.api.common.typeinfo.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 incoming message in a byte arraypublic boolean isEndOfStream(byte[] nextElement)
DeserializationSchemaisEndOfStream in interface DeserializationSchema<byte[]>nextElement - The element to test for end signalpublic byte[] serialize(byte[] element)
SerializationSchemaserialize in interface SerializationSchema<byte[],byte[]>element - The incoming element to be serializedpublic org.apache.flink.api.common.typeinfo.TypeInformation<byte[]> getProducedType()
getProducedType in interface org.apache.flink.api.java.typeutils.ResultTypeQueryable<byte[]>Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.