Class JsonRowSerializationSchema.Builder

java.lang.Object
org.apache.flink.formats.json.JsonRowSerializationSchema.Builder
Enclosing class:
JsonRowSerializationSchema

@PublicEvolving public static class JsonRowSerializationSchema.Builder extends Object
  • Constructor Details

    • Builder

      public Builder(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
      Creates a JSON serialization schema for the given type information.
      Parameters:
      typeInfo - Type information describing the result type. The field names of Row are used to parse the JSON properties.
    • Builder

      public Builder(String jsonSchema)
      Creates a JSON serialization schema for the given JSON schema.
      Parameters:
      jsonSchema - JSON schema describing the result type
      See Also:
  • Method Details

    • withTypeInfo

      public JsonRowSerializationSchema.Builder withTypeInfo(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
      Sets type information for JSON serialization schema.
      Parameters:
      typeInfo - Type information describing the result type. The field names of Row are used to parse the JSON properties.
    • build

      Finalizes the configuration and checks validity.
      Returns:
      Configured JsonRowSerializationSchema