@Internal public class JsonParserRowDataDeserializationSchema extends AbstractJsonDeserializationSchema
JsonParser
to RowData
which has a higher
parsing efficiency.DeserializationSchema.InitializationContext
failOnMissingField, ignoreParseErrors, objectMapper
Constructor and Description |
---|
JsonParserRowDataDeserializationSchema(RowType rowType,
TypeInformation<RowData> resultTypeInfo,
boolean failOnMissingField,
boolean ignoreParseErrors,
TimestampFormat timestampFormat) |
JsonParserRowDataDeserializationSchema(RowType rowType,
TypeInformation<RowData> resultTypeInfo,
boolean failOnMissingField,
boolean ignoreParseErrors,
TimestampFormat timestampFormat,
String[][] projectedFields) |
Modifier and Type | Method and Description |
---|---|
RowData |
deserialize(byte[] message)
Deserializes the byte message.
|
equals, getProducedType, hashCode, isEndOfStream, open
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
deserialize
public JsonParserRowDataDeserializationSchema(RowType rowType, TypeInformation<RowData> resultTypeInfo, boolean failOnMissingField, boolean ignoreParseErrors, TimestampFormat timestampFormat)
public JsonParserRowDataDeserializationSchema(RowType rowType, TypeInformation<RowData> resultTypeInfo, boolean failOnMissingField, boolean ignoreParseErrors, TimestampFormat timestampFormat, @Nullable String[][] projectedFields)
public RowData deserialize(byte[] message) throws IOException
DeserializationSchema
message
- The message, as a byte array.IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.