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.
|
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)
DeserializationSchema
deserialize
in interface DeserializationSchema<byte[]>
message
- The message, as a byte array.public boolean isEndOfStream(byte[] nextElement)
DeserializationSchema
isEndOfStream
in interface DeserializationSchema<byte[]>
nextElement
- The element to test for the end-of-stream signal.public byte[] serialize(byte[] element)
SerializationSchema
serialize
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.