HiveJsonInputFormat Class
This class specifies properties for Hive JSON input format for record format conversion.
You should only need to specify an instance of this class if the default configuration does not suit your needs.
Example
ts
const inputFormat = new firehose.HiveJsonInputFormat({
timestampParsers: [
firehose.TimestampParser.fromFormatString('yyyy-MM-dd'),
firehose.TimestampParser.EPOCH_MILLIS,
]
})
python
input_format = firehose.HiveJsonInputFormat(
timestamp_parsers=[
firehose.TimestampParser.from_format_string("yyyy-MM-dd"), firehose.TimestampParser.EPOCH_MILLIS
]
)
java
HiveJsonInputFormat inputFormat = HiveJsonInputFormat.Builder.create()
.timestampParsers(List.of(TimestampParser.fromFormatString("yyyy-MM-dd"), TimestampParser.EPOCH_MILLIS))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
var inputFormat = new HiveJsonInputFormat(new HiveJsonInputFormatProps {
TimestampParsers = new [] { TimestampParser.FromFormatString("yyyy-MM-dd"), TimestampParser.EPOCH_MILLIS }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
inputFormat := firehose.NewHiveJsonInputFormat(&HiveJsonInputFormatProps{
TimestampParsers: []TimestampParser{
firehose.TimestampParser_FromFormatString(jsii.String("yyyy-MM-dd")),
firehose.TimestampParser_EPOCH_MILLIS(),
},
})
Initializer
ts
new HiveJsonInputFormat(props?: HiveJsonInputFormatProps)
python
HiveJsonInputFormat(props: typing.Optional[HiveJsonInputFormatProps] = None)
java
new HiveJsonInputFormat(HiveJsonInputFormatProps props)
csharp
new HiveJsonInputFormat(HiveJsonInputFormatProps? props = null)
go
NewHiveJsonInputFormat(Props HiveJsonInputFormatProps)
Properties
propsmay be undefinedHiveJsonInputFormatPropspropsmay be undefinedHiveJsonInputFormatPropspropsmay be undefinedHiveJsonInputFormatPropsPropsmay be undefinedHiveJsonInputFormatPropsPropsmay be undefinedHiveJsonInputFormatProps#Properties for Hive JSON input format.
Methods
createInputFormatConfig(): CfnDeliveryStream.InputFormatConfigurationPropertydef create_input_format_config(self, ) -> InputFormatConfigurationPropertypublic InputFormatConfigurationProperty createInputFormatConfig()public InputFormatConfigurationProperty CreateInputFormatConfig()func CreateInputFormatConfig() InputFormatConfigurationProperty#Renders the cloudformation properties for the input format.