Package org.apache.flink.formats.json
Class JsonParserToRowDataConverters
java.lang.Object
org.apache.flink.formats.json.JsonParserToRowDataConverters
- All Implemented Interfaces:
Serializable
Tool class used to convert fields from
JsonParser to RowData.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceRuntime converter that convertsJsonParsers into objects of Flink Table & SQL internal data structures. -
Constructor Summary
ConstructorsConstructorDescriptionJsonParserToRowDataConverters(boolean failOnMissingField, boolean ignoreParseErrors, org.apache.flink.formats.common.TimestampFormat timestampFormat) -
Method Summary
Modifier and TypeMethodDescriptioncreateConverter(String[][] projectedFields, org.apache.flink.table.types.logical.RowType rowType) Creates a runtime nested converter which is null safe.createRowConverter(org.apache.flink.table.types.logical.RowType rowType) static voidskipToNextField(org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonParser jp)
-
Constructor Details
-
JsonParserToRowDataConverters
public JsonParserToRowDataConverters(boolean failOnMissingField, boolean ignoreParseErrors, org.apache.flink.formats.common.TimestampFormat timestampFormat)
-
-
Method Details
-
createConverter
public JsonParserToRowDataConverters.JsonParserToRowDataConverter createConverter(String[][] projectedFields, org.apache.flink.table.types.logical.RowType rowType) Creates a runtime nested converter which is null safe. -
createRowConverter
public JsonParserToRowDataConverters.JsonParserToRowDataConverter createRowConverter(org.apache.flink.table.types.logical.RowType rowType) -
skipToNextField
public static void skipToNextField(org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonParser jp) throws IOException - Throws:
IOException
-