blib/lib/Paws/Firehose/OpenXJsonSerDe.pm untested

filter: Statementstmt 0.0% 0 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 7 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::Firehose::OpenXJsonSerDe;
3 use Moose;
4 has CaseInsensitive => (is => 'ro', isa => 'Bool');
5 has ColumnToJsonKeyMappings => (is => 'ro', isa => 'Paws::Firehose::ColumnToJsonKeyMappings');
6 has ConvertDotsInJsonKeysToUnderscores => (is => 'ro', isa => 'Bool');
7  
8 1;
9  
10 ### main pod documentation begin ###
11  
12 =head1 NAME
13  
14 Paws::Firehose::OpenXJsonSerDe
15  
16 =head1 USAGE
17  
18 This class represents one of two things:
19  
20 =head3 Arguments in a call to a service
21  
22 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
23 Each attribute should be used as a named argument in the calls that expect this type of object.
24  
25 As an example, if Att1 is expected to be a Paws::Firehose::OpenXJsonSerDe object:
26  
27 $service_obj->Method(Att1 => { CaseInsensitive => $value, ..., ConvertDotsInJsonKeysToUnderscores => $value });
28  
29 =head3 Results returned from an API call
30  
31 Use accessors for each attribute. If Att1 is expected to be an Paws::Firehose::OpenXJsonSerDe object:
32  
33 $result = $service_obj->Method(...);
34 $result->Att1->CaseInsensitive
35  
36 =head1 DESCRIPTION
37  
38 The OpenX SerDe. Used by Kinesis Data Firehose for deserializing data,
39 which means converting it from the JSON format in preparation for
40 serializing it to the Parquet or ORC format. This is one of two
41 deserializers you can choose, depending on which one offers the
42 functionality you need. The other option is the native Hive / HCatalog
43 JsonSerDe.
44  
45 =head1 ATTRIBUTES
46  
47  
48 =head2 CaseInsensitive => Bool
49  
50 When set to C<true>, which is the default, Kinesis Data Firehose
51 converts JSON keys to lowercase before deserializing them.
52  
53  
54 =head2 ColumnToJsonKeyMappings => L<Paws::Firehose::ColumnToJsonKeyMappings>
55  
56 Maps column names to JSON keys that aren't identical to the column
57 names. This is useful when the JSON contains keys that are Hive
58 keywords. For example, C<timestamp> is a Hive keyword. If you have a
59 JSON key named C<timestamp>, set this parameter to C<{"ts":
60 "timestamp"}> to map this key to a column named C<ts>.
61  
62  
63 =head2 ConvertDotsInJsonKeysToUnderscores => Bool
64  
65 When set to C<true>, specifies that the names of the keys include dots
66 and that you want Kinesis Data Firehose to replace them with
67 underscores. This is useful because Apache Hive does not allow dots in
68 column names. For example, if the JSON contains a key whose name is
69 "a.b", you can define the column name to be "a_b" when using this
70 option.
71  
72 The default is C<false>.
73  
74  
75  
76 =head1 SEE ALSO
77  
78 This class forms part of L<Paws>, describing an object used in L<Paws::Firehose>
79  
80 =head1 BUGS and CONTRIBUTIONS
81  
82 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
83  
84 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
85  
86 =cut
87