AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OrcSerDe.h
1
6#pragma once
7#include <aws/firehose/Firehose_EXPORTS.h>
8#include <aws/firehose/model/OrcCompression.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/firehose/model/OrcFormatVersion.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Firehose
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_FIREHOSE_API OrcSerDe() = default;
41 AWS_FIREHOSE_API OrcSerDe(Aws::Utils::Json::JsonView jsonValue);
42 AWS_FIREHOSE_API OrcSerDe& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline int GetStripeSizeBytes() const { return m_stripeSizeBytes; }
52 inline bool StripeSizeBytesHasBeenSet() const { return m_stripeSizeBytesHasBeenSet; }
53 inline void SetStripeSizeBytes(int value) { m_stripeSizeBytesHasBeenSet = true; m_stripeSizeBytes = value; }
54 inline OrcSerDe& WithStripeSizeBytes(int value) { SetStripeSizeBytes(value); return *this;}
56
58
64 inline int GetBlockSizeBytes() const { return m_blockSizeBytes; }
65 inline bool BlockSizeBytesHasBeenSet() const { return m_blockSizeBytesHasBeenSet; }
66 inline void SetBlockSizeBytes(int value) { m_blockSizeBytesHasBeenSet = true; m_blockSizeBytes = value; }
67 inline OrcSerDe& WithBlockSizeBytes(int value) { SetBlockSizeBytes(value); return *this;}
69
71
75 inline int GetRowIndexStride() const { return m_rowIndexStride; }
76 inline bool RowIndexStrideHasBeenSet() const { return m_rowIndexStrideHasBeenSet; }
77 inline void SetRowIndexStride(int value) { m_rowIndexStrideHasBeenSet = true; m_rowIndexStride = value; }
78 inline OrcSerDe& WithRowIndexStride(int value) { SetRowIndexStride(value); return *this;}
80
82
87 inline bool GetEnablePadding() const { return m_enablePadding; }
88 inline bool EnablePaddingHasBeenSet() const { return m_enablePaddingHasBeenSet; }
89 inline void SetEnablePadding(bool value) { m_enablePaddingHasBeenSet = true; m_enablePadding = value; }
90 inline OrcSerDe& WithEnablePadding(bool value) { SetEnablePadding(value); return *this;}
92
94
106 inline double GetPaddingTolerance() const { return m_paddingTolerance; }
107 inline bool PaddingToleranceHasBeenSet() const { return m_paddingToleranceHasBeenSet; }
108 inline void SetPaddingTolerance(double value) { m_paddingToleranceHasBeenSet = true; m_paddingTolerance = value; }
109 inline OrcSerDe& WithPaddingTolerance(double value) { SetPaddingTolerance(value); return *this;}
111
113
117 inline OrcCompression GetCompression() const { return m_compression; }
118 inline bool CompressionHasBeenSet() const { return m_compressionHasBeenSet; }
119 inline void SetCompression(OrcCompression value) { m_compressionHasBeenSet = true; m_compression = value; }
120 inline OrcSerDe& WithCompression(OrcCompression value) { SetCompression(value); return *this;}
122
124
128 inline const Aws::Vector<Aws::String>& GetBloomFilterColumns() const { return m_bloomFilterColumns; }
129 inline bool BloomFilterColumnsHasBeenSet() const { return m_bloomFilterColumnsHasBeenSet; }
130 template<typename BloomFilterColumnsT = Aws::Vector<Aws::String>>
131 void SetBloomFilterColumns(BloomFilterColumnsT&& value) { m_bloomFilterColumnsHasBeenSet = true; m_bloomFilterColumns = std::forward<BloomFilterColumnsT>(value); }
132 template<typename BloomFilterColumnsT = Aws::Vector<Aws::String>>
133 OrcSerDe& WithBloomFilterColumns(BloomFilterColumnsT&& value) { SetBloomFilterColumns(std::forward<BloomFilterColumnsT>(value)); return *this;}
134 template<typename BloomFilterColumnsT = Aws::String>
135 OrcSerDe& AddBloomFilterColumns(BloomFilterColumnsT&& value) { m_bloomFilterColumnsHasBeenSet = true; m_bloomFilterColumns.emplace_back(std::forward<BloomFilterColumnsT>(value)); return *this; }
137
139
144 inline double GetBloomFilterFalsePositiveProbability() const { return m_bloomFilterFalsePositiveProbability; }
145 inline bool BloomFilterFalsePositiveProbabilityHasBeenSet() const { return m_bloomFilterFalsePositiveProbabilityHasBeenSet; }
146 inline void SetBloomFilterFalsePositiveProbability(double value) { m_bloomFilterFalsePositiveProbabilityHasBeenSet = true; m_bloomFilterFalsePositiveProbability = value; }
149
151
157 inline double GetDictionaryKeyThreshold() const { return m_dictionaryKeyThreshold; }
158 inline bool DictionaryKeyThresholdHasBeenSet() const { return m_dictionaryKeyThresholdHasBeenSet; }
159 inline void SetDictionaryKeyThreshold(double value) { m_dictionaryKeyThresholdHasBeenSet = true; m_dictionaryKeyThreshold = value; }
160 inline OrcSerDe& WithDictionaryKeyThreshold(double value) { SetDictionaryKeyThreshold(value); return *this;}
162
164
168 inline OrcFormatVersion GetFormatVersion() const { return m_formatVersion; }
169 inline bool FormatVersionHasBeenSet() const { return m_formatVersionHasBeenSet; }
170 inline void SetFormatVersion(OrcFormatVersion value) { m_formatVersionHasBeenSet = true; m_formatVersion = value; }
171 inline OrcSerDe& WithFormatVersion(OrcFormatVersion value) { SetFormatVersion(value); return *this;}
173 private:
174
175 int m_stripeSizeBytes{0};
176 bool m_stripeSizeBytesHasBeenSet = false;
177
178 int m_blockSizeBytes{0};
179 bool m_blockSizeBytesHasBeenSet = false;
180
181 int m_rowIndexStride{0};
182 bool m_rowIndexStrideHasBeenSet = false;
183
184 bool m_enablePadding{false};
185 bool m_enablePaddingHasBeenSet = false;
186
187 double m_paddingTolerance{0.0};
188 bool m_paddingToleranceHasBeenSet = false;
189
191 bool m_compressionHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_bloomFilterColumns;
194 bool m_bloomFilterColumnsHasBeenSet = false;
195
196 double m_bloomFilterFalsePositiveProbability{0.0};
197 bool m_bloomFilterFalsePositiveProbabilityHasBeenSet = false;
198
199 double m_dictionaryKeyThreshold{0.0};
200 bool m_dictionaryKeyThresholdHasBeenSet = false;
201
203 bool m_formatVersionHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace Firehose
208} // namespace Aws
OrcSerDe & WithDictionaryKeyThreshold(double value)
Definition OrcSerDe.h:160
OrcSerDe & WithCompression(OrcCompression value)
Definition OrcSerDe.h:120
void SetEnablePadding(bool value)
Definition OrcSerDe.h:89
void SetBlockSizeBytes(int value)
Definition OrcSerDe.h:66
void SetBloomFilterFalsePositiveProbability(double value)
Definition OrcSerDe.h:146
void SetDictionaryKeyThreshold(double value)
Definition OrcSerDe.h:159
double GetBloomFilterFalsePositiveProbability() const
Definition OrcSerDe.h:144
bool RowIndexStrideHasBeenSet() const
Definition OrcSerDe.h:76
double GetPaddingTolerance() const
Definition OrcSerDe.h:106
OrcSerDe & WithFormatVersion(OrcFormatVersion value)
Definition OrcSerDe.h:171
OrcSerDe & WithBloomFilterColumns(BloomFilterColumnsT &&value)
Definition OrcSerDe.h:133
bool StripeSizeBytesHasBeenSet() const
Definition OrcSerDe.h:52
OrcSerDe & WithEnablePadding(bool value)
Definition OrcSerDe.h:90
bool DictionaryKeyThresholdHasBeenSet() const
Definition OrcSerDe.h:158
bool CompressionHasBeenSet() const
Definition OrcSerDe.h:118
AWS_FIREHOSE_API OrcSerDe()=default
void SetStripeSizeBytes(int value)
Definition OrcSerDe.h:53
OrcSerDe & WithBlockSizeBytes(int value)
Definition OrcSerDe.h:67
OrcFormatVersion GetFormatVersion() const
Definition OrcSerDe.h:168
OrcSerDe & WithRowIndexStride(int value)
Definition OrcSerDe.h:78
bool BloomFilterColumnsHasBeenSet() const
Definition OrcSerDe.h:129
void SetPaddingTolerance(double value)
Definition OrcSerDe.h:108
double GetDictionaryKeyThreshold() const
Definition OrcSerDe.h:157
OrcSerDe & AddBloomFilterColumns(BloomFilterColumnsT &&value)
Definition OrcSerDe.h:135
bool EnablePaddingHasBeenSet() const
Definition OrcSerDe.h:88
OrcSerDe & WithBloomFilterFalsePositiveProbability(double value)
Definition OrcSerDe.h:147
bool FormatVersionHasBeenSet() const
Definition OrcSerDe.h:169
OrcSerDe & WithStripeSizeBytes(int value)
Definition OrcSerDe.h:54
bool BloomFilterFalsePositiveProbabilityHasBeenSet() const
Definition OrcSerDe.h:145
void SetCompression(OrcCompression value)
Definition OrcSerDe.h:119
bool BlockSizeBytesHasBeenSet() const
Definition OrcSerDe.h:65
AWS_FIREHOSE_API OrcSerDe(Aws::Utils::Json::JsonView jsonValue)
bool PaddingToleranceHasBeenSet() const
Definition OrcSerDe.h:107
AWS_FIREHOSE_API OrcSerDe & operator=(Aws::Utils::Json::JsonView jsonValue)
OrcCompression GetCompression() const
Definition OrcSerDe.h:117
OrcSerDe & WithPaddingTolerance(double value)
Definition OrcSerDe.h:109
void SetFormatVersion(OrcFormatVersion value)
Definition OrcSerDe.h:170
void SetRowIndexStride(int value)
Definition OrcSerDe.h:77
void SetBloomFilterColumns(BloomFilterColumnsT &&value)
Definition OrcSerDe.h:131
const Aws::Vector< Aws::String > & GetBloomFilterColumns() const
Definition OrcSerDe.h:128
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue