Package org.apache.flink.formats.json
Class JsonRowDeserializationSchema
- java.lang.Object
-
- org.apache.flink.formats.json.JsonRowDeserializationSchema
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row>,org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.types.Row>
@PublicEvolving @Deprecated public class JsonRowDeserializationSchema extends Object implements org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row>
Deprecated.The format was developed for the Table API users and will not be maintained for DataStream API users anymore. Either use Table API or switch to Data Stream, defining your ownDeserializationSchema.Deserialization schema from JSON to Flink types.Deserializes a
byte[]message as a JSON object and reads the specified fields.Failures during deserialization are forwarded as wrapped IOExceptions.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonRowDeserializationSchema.BuilderDeprecated.Builder forJsonRowDeserializationSchema.
-
Constructor Summary
Constructors Constructor Description JsonRowDeserializationSchema(String jsonSchema)Deprecated.Use the providedJsonRowDeserializationSchema.Builderinstead.JsonRowDeserializationSchema(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)Deprecated.Use the providedJsonRowDeserializationSchema.Builderinstead.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.flink.types.Rowdeserialize(byte[] message)Deprecated.booleanequals(Object o)Deprecated.org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row>getProducedType()Deprecated.inthashCode()Deprecated.booleanisEndOfStream(org.apache.flink.types.Row nextElement)Deprecated.voidopen(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context)Deprecated.voidsetFailOnMissingField(boolean failOnMissingField)Deprecated.Use the providedJsonRowDeserializationSchema.Builderinstead.
-
-
-
Constructor Detail
-
JsonRowDeserializationSchema
@Deprecated public JsonRowDeserializationSchema(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
Deprecated.Use the providedJsonRowDeserializationSchema.Builderinstead.
-
JsonRowDeserializationSchema
@Deprecated public JsonRowDeserializationSchema(String jsonSchema)
Deprecated.Use the providedJsonRowDeserializationSchema.Builderinstead.
-
-
Method Detail
-
open
public void open(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context) throws ExceptionDeprecated.- Specified by:
openin interfaceorg.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row>- Throws:
Exception
-
setFailOnMissingField
@Deprecated public void setFailOnMissingField(boolean failOnMissingField)
Deprecated.Use the providedJsonRowDeserializationSchema.Builderinstead.
-
deserialize
public org.apache.flink.types.Row deserialize(byte[] message) throws IOExceptionDeprecated.- Specified by:
deserializein interfaceorg.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row>- Throws:
IOException
-
isEndOfStream
public boolean isEndOfStream(org.apache.flink.types.Row nextElement)
Deprecated.- Specified by:
isEndOfStreamin interfaceorg.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row>
-
getProducedType
public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> getProducedType()
Deprecated.- Specified by:
getProducedTypein interfaceorg.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.types.Row>
-
-