Interface OpenXJsonInputFormatProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
OpenXJsonInputFormatProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:12.485Z")
@Stability(Stable)
public interface OpenXJsonInputFormatProps
extends software.amazon.jsii.JsiiSerializable
Props for OpenX JSON input format for data record format conversion.
Example:
OpenXJsonInputFormat inputFormat = OpenXJsonInputFormat.Builder.create()
.lowercaseColumnNames(false)
.columnToJsonKeyMappings(Map.of("ts", "timestamp"))
.convertDotsInJsonKeysToUnderscores(true)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forOpenXJsonInputFormatPropsstatic final classAn implementation forOpenXJsonInputFormatProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Maps column names to JSON keys that aren't identical to the column names.default BooleanWhen set totrue, specifies that the names of the keys include dots and that you want Firehose to replace them with underscores.default BooleanWhether the JSON keys should be lowercased when written as column names.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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 namedtsDefault: JSON keys are not renamed
-
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.
Default: `false`
-
getLowercaseColumnNames
Whether the JSON keys should be lowercased when written as column names.Default: `true`
-
builder
- Returns:
- a
OpenXJsonInputFormatProps.BuilderofOpenXJsonInputFormatProps
-