Class JsonRowSerializationSchema

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.types.Row>

    @Deprecated
    public class JsonRowSerializationSchema
    extends java.lang.Object
    implements org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.types.Row>
    Deprecated.
    Please use JsonRowSerializationSchema from flink-json module
    Serialization schema that serializes an object into a JSON bytes.

    Serializes the input Row object into a JSON string and converts it into byte[].

    Result byte[] messages can be deserialized using JsonRowDeserializationSchema.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonRowSerializationSchema​(java.lang.String[] fieldNames)
      Deprecated.
      Creates a JSON serialization schema for the given fields and types.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      byte[] serialize​(org.apache.flink.types.Row row)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonRowSerializationSchema

        public JsonRowSerializationSchema​(java.lang.String[] fieldNames)
        Deprecated.
        Creates a JSON serialization schema for the given fields and types.
        Parameters:
        fieldNames - Names of JSON fields to parse.
    • Method Detail

      • serialize

        public byte[] serialize​(org.apache.flink.types.Row row)
        Deprecated.
        Specified by:
        serialize in interface org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.types.Row>