Package org.apache.flink.formats.json
Class JsonParserToRowDataConverters
- java.lang.Object
-
- org.apache.flink.formats.json.JsonParserToRowDataConverters
-
- All Implemented Interfaces:
Serializable
@Internal public class JsonParserToRowDataConverters extends Object implements Serializable
Tool class used to convert fields fromJsonParser
toRowData
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
JsonParserToRowDataConverters.JsonParserToRowDataConverter
Runtime converter that convertsJsonParser
s into objects of Flink Table & SQL internal data structures.
-
Constructor Summary
Constructors Constructor Description JsonParserToRowDataConverters(boolean failOnMissingField, boolean ignoreParseErrors, TimestampFormat timestampFormat)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonParserToRowDataConverters.JsonParserToRowDataConverter
createConverter(String[][] projectedFields, RowType rowType)
Creates a runtime nested converter which is null safe.JsonParserToRowDataConverters.JsonParserToRowDataConverter
createRowConverter(RowType rowType)
static void
skipToNextField(org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonParser jp)
-
-
-
Constructor Detail
-
JsonParserToRowDataConverters
public JsonParserToRowDataConverters(boolean failOnMissingField, boolean ignoreParseErrors, TimestampFormat timestampFormat)
-
-
Method Detail
-
createConverter
public JsonParserToRowDataConverters.JsonParserToRowDataConverter createConverter(String[][] projectedFields, RowType rowType)
Creates a runtime nested converter which is null safe.
-
createRowConverter
public JsonParserToRowDataConverters.JsonParserToRowDataConverter createRowConverter(RowType rowType)
-
skipToNextField
public static void skipToNextField(org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonParser jp) throws IOException
- Throws:
IOException
-
-