@Internal public final class OggJsonDeserializationSchema extends Object implements org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>
RowData.
The deserialization schema knows Ogg's schema definition and can extract the database data and
convert into RowData with RowKind.
Deserializes a byte[] message as a JSON object and reads the specified fields.
Failures during deserialization are forwarded as wrapped IOExceptions.
| Constructor and Description |
|---|
OggJsonDeserializationSchema(org.apache.flink.table.types.DataType physicalDataType,
List<org.apache.flink.formats.json.ogg.OggJsonDecodingFormat.ReadableMetadata> requestedMetadata,
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> producedTypeInfo,
boolean ignoreParseErrors,
org.apache.flink.formats.common.TimestampFormat timestampFormat) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.table.data.RowData |
deserialize(byte[] message) |
void |
deserialize(byte[] message,
org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out) |
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 OggJsonDeserializationSchema(org.apache.flink.table.types.DataType physicalDataType,
List<org.apache.flink.formats.json.ogg.OggJsonDecodingFormat.ReadableMetadata> requestedMetadata,
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> producedTypeInfo,
boolean ignoreParseErrors,
org.apache.flink.formats.common.TimestampFormat timestampFormat)
public void open(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context)
throws Exception
open in interface org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>Exceptionpublic org.apache.flink.table.data.RowData deserialize(byte[] message)
deserialize in interface org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>public void deserialize(byte[] message,
org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out)
throws IOException
deserialize in interface org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>IOExceptionpublic 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–2024 The Apache Software Foundation. All rights reserved.