@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.
| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
void |
open(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context) |
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 void open(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context)
throws Exception
open 在接口中 org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>Exceptionpublic org.apache.flink.table.data.RowData deserialize(@Nullable byte[] message) throws IOException
deserialize 在接口中 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 在接口中 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 在接口中 org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.table.data.RowData>Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.