Class JsonRowDeserializationSchema
- java.lang.Object
-
- io.pravega.connectors.flink.serialization.JsonRowDeserializationSchema
-
- All Implemented Interfaces:
java.io.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>
@Deprecated public class JsonRowDeserializationSchema extends java.lang.Object implements org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row>
Deprecated.Please useJsonRowDeserializationSchema
from flink-json moduleDeserialization schema from JSON toRow
.Deserializes the
byte[]
messages as a JSON object and reads the specified fields.Failure during deserialization are forwarded as wrapped IOExceptions.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonRowDeserializationSchema(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
Deprecated.Creates a JSON deserialization schema for the given fields and types.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.flink.types.Row
deserialize(byte[] message)
Deprecated.boolean
getFailOnMissingField()
Deprecated.Gets the failure behavior if a JSON field is missing.org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row>
getProducedType()
Deprecated.boolean
isEndOfStream(org.apache.flink.types.Row nextElement)
Deprecated.void
setFailOnMissingField(boolean failOnMissingField)
Deprecated.Configures the failure behaviour if a JSON field is missing.
-
-
-
Constructor Detail
-
JsonRowDeserializationSchema
public JsonRowDeserializationSchema(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
Deprecated.Creates a JSON deserialization schema for the given fields and types.- Parameters:
typeInfo
- Type information describing the result type. The field names are used to parse the JSON file and so are the types.
-
-
Method Detail
-
deserialize
public org.apache.flink.types.Row deserialize(byte[] message) throws java.io.IOException
Deprecated.- Specified by:
deserialize
in interfaceorg.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.types.Row>
- Throws:
java.io.IOException
-
isEndOfStream
public boolean isEndOfStream(org.apache.flink.types.Row nextElement)
Deprecated.- Specified by:
isEndOfStream
in 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:
getProducedType
in interfaceorg.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.types.Row>
-
setFailOnMissingField
public void setFailOnMissingField(boolean failOnMissingField)
Deprecated.Configures the failure behaviour if a JSON field is missing.By default, a missing field is ignored and the field is set to null.
- Parameters:
failOnMissingField
- Flag indicating whether to fail or not on a missing field.
-
getFailOnMissingField
public boolean getFailOnMissingField()
Deprecated.Gets the failure behavior if a JSON field is missing.
-
-