Interface CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty.Jsii$Proxy
- Enclosing class:
CfnDeliveryStreamPropsMixin
Used by Firehose for deserializing data, which means converting it from the JSON format in preparation for serializing it to the Parquet or ORC format. This is one of two deserializers you can choose, depending on which one offers the functionality you need. The other option is the native Hive / HCatalog JsonSerDe.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.mixins.preview.services.kinesisfirehose.mixins.*;
OpenXJsonSerDeProperty openXJsonSerDeProperty = OpenXJsonSerDeProperty.builder()
.caseInsensitive(false)
.columnToJsonKeyMappings(Map.of(
"columnToJsonKeyMappingsKey", "columnToJsonKeyMappings"))
.convertDotsInJsonKeysToUnderscores(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDeliveryStreamPropsMixin.OpenXJsonSerDePropertystatic final classAn implementation forCfnDeliveryStreamPropsMixin.OpenXJsonSerDeProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectWhen set totrue, which is the default, Firehose converts JSON keys to lowercase before deserializing them.default ObjectMaps column names to JSON keys that aren't identical to the column names.default ObjectWhen 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.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCaseInsensitive
When set totrue, which is the default, Firehose converts JSON keys to lowercase before deserializing them.Returns union: either
BooleanorIResolvable- See Also:
-
getColumnToJsonKeyMappings
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,
timestampis 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 union: either Mapinvalid input: '<'String,
String> orIResolvable- See Also:
-
getConvertDotsInJsonKeysToUnderscores
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 union: either
BooleanorIResolvable- See Also:
-
builder
-