@Internal public class JsonRowDataDeserializationSchema extends Object implements org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>
RowData.
Deserializes a byte[] message as a JSON object and reads the specified fields.
Failures during deserialization are forwarded as wrapped IOExceptions.
| Constructor and Description |
|---|
JsonRowDataDeserializationSchema(org.apache.flink.table.types.logical.RowType rowType,
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> resultTypeInfo,
boolean failOnMissingField,
boolean ignoreParseErrors,
org.apache.flink.formats.common.TimestampFormat timestampFormat) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.table.data.RowData |
convertToRowData(org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode message) |
org.apache.flink.table.data.RowData |
deserialize(byte[] message) |
org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode |
deserializeToJsonNode(byte[] message) |
boolean |
equals(Object o) |
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> |
getProducedType() |
int |
hashCode() |
boolean |
isEndOfStream(org.apache.flink.table.data.RowData nextElement) |
public JsonRowDataDeserializationSchema(org.apache.flink.table.types.logical.RowType rowType,
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> resultTypeInfo,
boolean failOnMissingField,
boolean ignoreParseErrors,
org.apache.flink.formats.common.TimestampFormat timestampFormat)
public org.apache.flink.table.data.RowData deserialize(@Nullable byte[] message) throws IOException
deserialize in interface org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>IOExceptionpublic org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode deserializeToJsonNode(byte[] message)
throws IOException
IOExceptionpublic org.apache.flink.table.data.RowData convertToRowData(org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode message)
public boolean isEndOfStream(org.apache.flink.table.data.RowData nextElement)
isEndOfStream in interface org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> getProducedType()
getProducedType in interface org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.table.data.RowData>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.