Interface OpenXJsonSerDe.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OpenXJsonSerDe.Builder,
,OpenXJsonSerDe> SdkBuilder<OpenXJsonSerDe.Builder,
,OpenXJsonSerDe> SdkPojo
- Enclosing class:
OpenXJsonSerDe
-
Method Summary
Modifier and TypeMethodDescriptioncaseInsensitive
(Boolean caseInsensitive) When set totrue
, which is the default, Firehose converts JSON keys to lowercase before deserializing them.columnToJsonKeyMappings
(Map<String, String> columnToJsonKeyMappings) Maps column names to JSON keys that aren't identical to the column names.convertDotsInJsonKeysToUnderscores
(Boolean convertDotsInJsonKeysToUnderscores) When set totrue
, specifies that the names of the keys include dots and that you want Firehose to replace them with underscores.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
convertDotsInJsonKeysToUnderscores
OpenXJsonSerDe.Builder convertDotsInJsonKeysToUnderscores(Boolean convertDotsInJsonKeysToUnderscores) When set to
true
, specifies that the names of the keys include dots and that you want Firehose to replace them with underscores. This is useful because Apache Hive does not allow dots in column names. For example, if the JSON contains a key whose name is "a.b", you can define the column name to be "a_b" when using this option.The default is
false
.- Parameters:
convertDotsInJsonKeysToUnderscores
- When set totrue
, specifies that the names of the keys include dots and that you want Firehose to replace them with underscores. This is useful because Apache Hive does not allow dots in column names. For example, if the JSON contains a key whose name is "a.b", you can define the column name to be "a_b" when using this option.The default is
false
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
caseInsensitive
When set to
true
, which is the default, Firehose converts JSON keys to lowercase before deserializing them.- Parameters:
caseInsensitive
- When set totrue
, which is the default, Firehose converts JSON keys to lowercase before deserializing them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columnToJsonKeyMappings
Maps column names to JSON keys that aren't identical to the column names. This is useful when the JSON contains keys that are Hive keywords. For example,
timestamp
is a Hive keyword. If you have a JSON key namedtimestamp
, set this parameter to{"ts": "timestamp"}
to map this key to a column namedts
.- Parameters:
columnToJsonKeyMappings
- Maps column names to JSON keys that aren't identical to the column names. This is useful when the JSON contains keys that are Hive keywords. For example,timestamp
is a Hive keyword. If you have a JSON key namedtimestamp
, set this parameter to{"ts": "timestamp"}
to map this key to a column namedts
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-