Class: AWSCDK::KinesisFirehose::CfnDeliveryStream::HiveJsonSerDeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_firehose/cfn_delivery_stream.rb

Overview

The native Hive / HCatalog JsonSerDe.

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 OpenX SerDe.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timestamp_formats: nil) ⇒ HiveJsonSerDeProperty

Returns a new instance of HiveJsonSerDeProperty.

Parameters:

  • timestamp_formats (Array<String>, nil) (defaults to: nil)

    Indicates how you want Firehose to parse the date and timestamps that may be present in your input data JSON.



2730
2731
2732
2733
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 2730

def initialize(timestamp_formats: nil)
  @timestamp_formats = timestamp_formats
  Jsii::Type.check_type(@timestamp_formats, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "timestampFormats") unless @timestamp_formats.nil?
end

Instance Attribute Details

#timestamp_formatsArray<String>? (readonly)

Indicates how you want Firehose to parse the date and timestamps that may be present in your input data JSON.

To specify these format strings, follow the pattern syntax of JodaTime's DateTimeFormat format strings. For more information, see Class DateTimeFormat . You can also use the special value millis to parse timestamps in epoch milliseconds. If you don't specify a format, Firehose uses java.sql.Timestamp::valueOf by default.



2741
2742
2743
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 2741

def timestamp_formats
  @timestamp_formats
end

Class Method Details

.jsii_propertiesObject



2743
2744
2745
2746
2747
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 2743

def self.jsii_properties
  {
    :timestamp_formats => "timestampFormats",
  }
end

Instance Method Details

#to_jsiiObject



2749
2750
2751
2752
2753
2754
2755
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 2749

def to_jsii
  result = {}
  result.merge!({
    "timestampFormats" => @timestamp_formats,
  })
  result.compact
end