Class ByteArraySchema

    • Constructor Detail

      • ByteArraySchema

        public ByteArraySchema()
    • Method Detail

      • deserialize

        public byte[] deserialize​(byte[] message)
                           throws IOException
        Description copied from interface: DeserializationSchema
        Deserializes the byte message.
        Specified by:
        deserialize in interface DeserializationSchema<byte[]>
        Parameters:
        message - The message, as a byte array.
        Returns:
        The deserialized message as an object (null if the message cannot be deserialized).
        Throws:
        IOException
      • isEndOfStream

        public boolean isEndOfStream​(byte[] nextElement)
        Description copied from interface: DeserializationSchema
        Method to decide whether the element signals the end of the stream. If true is returned the element won't be emitted.
        Specified by:
        isEndOfStream in interface DeserializationSchema<byte[]>
        Parameters:
        nextElement - The element to test for the end-of-stream signal.
        Returns:
        True, if the element signals end of stream, false otherwise.
      • serialize

        public byte[] serialize​(byte[] element)
        Description copied from interface: SerializationSchema
        Serializes the incoming element to a specified type.
        Specified by:
        serialize in interface SerializationSchema<byte[]>
        Parameters:
        element - The incoming element to be serialized
        Returns:
        The serialized element.