public class JsonOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JsonOptions.MapNullKeyMode
Handling mode for map data with null key.
|
Modifier and Type | Field and Description |
---|---|
static ConfigOption<Boolean> |
FAIL_ON_MISSING_FIELD |
static ConfigOption<Boolean> |
IGNORE_PARSE_ERRORS |
static String |
ISO_8601 |
static String |
JSON_MAP_NULL_KEY_MODE_DROP |
static String |
JSON_MAP_NULL_KEY_MODE_FAIL |
static String |
JSON_MAP_NULL_KEY_MODE_LITERAL |
static ConfigOption<String> |
MAP_NULL_KEY_LITERAL |
static ConfigOption<String> |
MAP_NULL_KEY_MODE |
static String |
SQL |
static ConfigOption<String> |
TIMESTAMP_FORMAT |
static Set<String> |
TIMESTAMP_FORMAT_ENUM |
Constructor and Description |
---|
JsonOptions() |
Modifier and Type | Method and Description |
---|---|
static JsonOptions.MapNullKeyMode |
getMapNullKeyMode(ReadableConfig config)
Creates handling mode for null key map data.
|
static TimestampFormat |
getTimestampFormat(ReadableConfig config) |
static void |
validateDecodingFormatOptions(ReadableConfig tableOptions)
Validator for json decoding format.
|
static void |
validateEncodingFormatOptions(ReadableConfig tableOptions)
Validator for json encoding format.
|
public static final ConfigOption<Boolean> FAIL_ON_MISSING_FIELD
public static final ConfigOption<Boolean> IGNORE_PARSE_ERRORS
public static final ConfigOption<String> MAP_NULL_KEY_MODE
public static final ConfigOption<String> MAP_NULL_KEY_LITERAL
public static final ConfigOption<String> TIMESTAMP_FORMAT
public static final String SQL
public static final String ISO_8601
public static final String JSON_MAP_NULL_KEY_MODE_FAIL
public static final String JSON_MAP_NULL_KEY_MODE_DROP
public static final String JSON_MAP_NULL_KEY_MODE_LITERAL
public static TimestampFormat getTimestampFormat(ReadableConfig config)
public static JsonOptions.MapNullKeyMode getMapNullKeyMode(ReadableConfig config)
See JSON_MAP_NULL_KEY_MODE_FAIL
, JSON_MAP_NULL_KEY_MODE_DROP
, and JSON_MAP_NULL_KEY_MODE_LITERAL
for more information.
public static void validateDecodingFormatOptions(ReadableConfig tableOptions)
public static void validateEncodingFormatOptions(ReadableConfig tableOptions)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.