public static enum HiveJsonReader.Feature extends Enum<HiveJsonReader.Feature>
| Enum Constant and Description |
|---|
COL_INDEX_PARSING
Enables an optimization to look up each JSON field based on its index in
the Hive schema.
|
IGNORE_UNKNOWN_FIELDS
If the JSON object being parsed includes a field that is not included in
the Hive schema, enabling this feature will cause the JSON reader to
produce a log warnings.
|
PRIMITIVE_TO_WRITABLE
If this feature is enabled, when a JSON node is parsed, its value will be
returned as a Hadoop Writable object.
|
STRINGIFY_COMPLEX_FIELDS
If the JSON object being parsed includes a complex field with non defined Hive schema,
enabling this feature will cause the JSON reader to treat the field as a String.
|
| Modifier and Type | Method and Description |
|---|---|
static HiveJsonReader.Feature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HiveJsonReader.Feature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HiveJsonReader.Feature COL_INDEX_PARSING
public static final HiveJsonReader.Feature PRIMITIVE_TO_WRITABLE
public static final HiveJsonReader.Feature IGNORE_UNKNOWN_FIELDS
public static final HiveJsonReader.Feature STRINGIFY_COMPLEX_FIELDS
public static HiveJsonReader.Feature[] values()
for (HiveJsonReader.Feature c : HiveJsonReader.Feature.values()) System.out.println(c);
public static HiveJsonReader.Feature valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022 The Apache Software Foundation. All rights reserved.