AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
OrcSerDe.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/firehose/Firehose_EXPORTS.h>
10#include <aws/firehose/model/OrcCompression.h>
11#include <aws/firehose/model/OrcFormatVersion.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Firehose {
23namespace Model {
24
33class OrcSerDe {
34 public:
35 AWS_FIREHOSE_API OrcSerDe() = default;
36 AWS_FIREHOSE_API OrcSerDe(Aws::Utils::Json::JsonView jsonValue);
37 AWS_FIREHOSE_API OrcSerDe& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline int GetStripeSizeBytes() const { return m_stripeSizeBytes; }
46 inline bool StripeSizeBytesHasBeenSet() const { return m_stripeSizeBytesHasBeenSet; }
47 inline void SetStripeSizeBytes(int value) {
48 m_stripeSizeBytesHasBeenSet = true;
49 m_stripeSizeBytes = value;
50 }
51 inline OrcSerDe& WithStripeSizeBytes(int value) {
52 SetStripeSizeBytes(value);
53 return *this;
54 }
56
58
64 inline int GetBlockSizeBytes() const { return m_blockSizeBytes; }
65 inline bool BlockSizeBytesHasBeenSet() const { return m_blockSizeBytesHasBeenSet; }
66 inline void SetBlockSizeBytes(int value) {
67 m_blockSizeBytesHasBeenSet = true;
68 m_blockSizeBytes = value;
69 }
70 inline OrcSerDe& WithBlockSizeBytes(int value) {
71 SetBlockSizeBytes(value);
72 return *this;
73 }
75
77
81 inline int GetRowIndexStride() const { return m_rowIndexStride; }
82 inline bool RowIndexStrideHasBeenSet() const { return m_rowIndexStrideHasBeenSet; }
83 inline void SetRowIndexStride(int value) {
84 m_rowIndexStrideHasBeenSet = true;
85 m_rowIndexStride = value;
86 }
87 inline OrcSerDe& WithRowIndexStride(int value) {
88 SetRowIndexStride(value);
89 return *this;
90 }
92
94
99 inline bool GetEnablePadding() const { return m_enablePadding; }
100 inline bool EnablePaddingHasBeenSet() const { return m_enablePaddingHasBeenSet; }
101 inline void SetEnablePadding(bool value) {
102 m_enablePaddingHasBeenSet = true;
103 m_enablePadding = value;
104 }
105 inline OrcSerDe& WithEnablePadding(bool value) {
106 SetEnablePadding(value);
107 return *this;
108 }
110
112
124 inline double GetPaddingTolerance() const { return m_paddingTolerance; }
125 inline bool PaddingToleranceHasBeenSet() const { return m_paddingToleranceHasBeenSet; }
126 inline void SetPaddingTolerance(double value) {
127 m_paddingToleranceHasBeenSet = true;
128 m_paddingTolerance = value;
129 }
130 inline OrcSerDe& WithPaddingTolerance(double value) {
131 SetPaddingTolerance(value);
132 return *this;
133 }
135
137
141 inline OrcCompression GetCompression() const { return m_compression; }
142 inline bool CompressionHasBeenSet() const { return m_compressionHasBeenSet; }
143 inline void SetCompression(OrcCompression value) {
144 m_compressionHasBeenSet = true;
145 m_compression = value;
146 }
148 SetCompression(value);
149 return *this;
150 }
152
154
158 inline const Aws::Vector<Aws::String>& GetBloomFilterColumns() const { return m_bloomFilterColumns; }
159 inline bool BloomFilterColumnsHasBeenSet() const { return m_bloomFilterColumnsHasBeenSet; }
160 template <typename BloomFilterColumnsT = Aws::Vector<Aws::String>>
161 void SetBloomFilterColumns(BloomFilterColumnsT&& value) {
162 m_bloomFilterColumnsHasBeenSet = true;
163 m_bloomFilterColumns = std::forward<BloomFilterColumnsT>(value);
164 }
165 template <typename BloomFilterColumnsT = Aws::Vector<Aws::String>>
166 OrcSerDe& WithBloomFilterColumns(BloomFilterColumnsT&& value) {
167 SetBloomFilterColumns(std::forward<BloomFilterColumnsT>(value));
168 return *this;
169 }
170 template <typename BloomFilterColumnsT = Aws::String>
171 OrcSerDe& AddBloomFilterColumns(BloomFilterColumnsT&& value) {
172 m_bloomFilterColumnsHasBeenSet = true;
173 m_bloomFilterColumns.emplace_back(std::forward<BloomFilterColumnsT>(value));
174 return *this;
175 }
177
179
184 inline double GetBloomFilterFalsePositiveProbability() const { return m_bloomFilterFalsePositiveProbability; }
185 inline bool BloomFilterFalsePositiveProbabilityHasBeenSet() const { return m_bloomFilterFalsePositiveProbabilityHasBeenSet; }
186 inline void SetBloomFilterFalsePositiveProbability(double value) {
187 m_bloomFilterFalsePositiveProbabilityHasBeenSet = true;
188 m_bloomFilterFalsePositiveProbability = value;
189 }
192 return *this;
193 }
195
197
203 inline double GetDictionaryKeyThreshold() const { return m_dictionaryKeyThreshold; }
204 inline bool DictionaryKeyThresholdHasBeenSet() const { return m_dictionaryKeyThresholdHasBeenSet; }
205 inline void SetDictionaryKeyThreshold(double value) {
206 m_dictionaryKeyThresholdHasBeenSet = true;
207 m_dictionaryKeyThreshold = value;
208 }
209 inline OrcSerDe& WithDictionaryKeyThreshold(double value) {
211 return *this;
212 }
214
216
220 inline OrcFormatVersion GetFormatVersion() const { return m_formatVersion; }
221 inline bool FormatVersionHasBeenSet() const { return m_formatVersionHasBeenSet; }
223 m_formatVersionHasBeenSet = true;
224 m_formatVersion = value;
225 }
227 SetFormatVersion(value);
228 return *this;
229 }
231 private:
232 int m_stripeSizeBytes{0};
233
234 int m_blockSizeBytes{0};
235
236 int m_rowIndexStride{0};
237
238 bool m_enablePadding{false};
239
240 double m_paddingTolerance{0.0};
241
243
244 Aws::Vector<Aws::String> m_bloomFilterColumns;
245
246 double m_bloomFilterFalsePositiveProbability{0.0};
247
248 double m_dictionaryKeyThreshold{0.0};
249
251 bool m_stripeSizeBytesHasBeenSet = false;
252 bool m_blockSizeBytesHasBeenSet = false;
253 bool m_rowIndexStrideHasBeenSet = false;
254 bool m_enablePaddingHasBeenSet = false;
255 bool m_paddingToleranceHasBeenSet = false;
256 bool m_compressionHasBeenSet = false;
257 bool m_bloomFilterColumnsHasBeenSet = false;
258 bool m_bloomFilterFalsePositiveProbabilityHasBeenSet = false;
259 bool m_dictionaryKeyThresholdHasBeenSet = false;
260 bool m_formatVersionHasBeenSet = false;
261};
262
263} // namespace Model
264} // namespace Firehose
265} // namespace Aws
OrcSerDe & WithDictionaryKeyThreshold(double value)
Definition OrcSerDe.h:209
OrcSerDe & WithCompression(OrcCompression value)
Definition OrcSerDe.h:147
void SetEnablePadding(bool value)
Definition OrcSerDe.h:101
void SetBlockSizeBytes(int value)
Definition OrcSerDe.h:66
void SetBloomFilterFalsePositiveProbability(double value)
Definition OrcSerDe.h:186
void SetDictionaryKeyThreshold(double value)
Definition OrcSerDe.h:205
double GetBloomFilterFalsePositiveProbability() const
Definition OrcSerDe.h:184
bool RowIndexStrideHasBeenSet() const
Definition OrcSerDe.h:82
double GetPaddingTolerance() const
Definition OrcSerDe.h:124
OrcSerDe & WithFormatVersion(OrcFormatVersion value)
Definition OrcSerDe.h:226
OrcSerDe & WithBloomFilterColumns(BloomFilterColumnsT &&value)
Definition OrcSerDe.h:166
bool StripeSizeBytesHasBeenSet() const
Definition OrcSerDe.h:46
OrcSerDe & WithEnablePadding(bool value)
Definition OrcSerDe.h:105
bool DictionaryKeyThresholdHasBeenSet() const
Definition OrcSerDe.h:204
bool CompressionHasBeenSet() const
Definition OrcSerDe.h:142
AWS_FIREHOSE_API OrcSerDe()=default
void SetStripeSizeBytes(int value)
Definition OrcSerDe.h:47
OrcSerDe & WithBlockSizeBytes(int value)
Definition OrcSerDe.h:70
OrcFormatVersion GetFormatVersion() const
Definition OrcSerDe.h:220
OrcSerDe & WithRowIndexStride(int value)
Definition OrcSerDe.h:87
bool BloomFilterColumnsHasBeenSet() const
Definition OrcSerDe.h:159
void SetPaddingTolerance(double value)
Definition OrcSerDe.h:126
double GetDictionaryKeyThreshold() const
Definition OrcSerDe.h:203
OrcSerDe & AddBloomFilterColumns(BloomFilterColumnsT &&value)
Definition OrcSerDe.h:171
bool EnablePaddingHasBeenSet() const
Definition OrcSerDe.h:100
OrcSerDe & WithBloomFilterFalsePositiveProbability(double value)
Definition OrcSerDe.h:190
bool FormatVersionHasBeenSet() const
Definition OrcSerDe.h:221
OrcSerDe & WithStripeSizeBytes(int value)
Definition OrcSerDe.h:51
bool BloomFilterFalsePositiveProbabilityHasBeenSet() const
Definition OrcSerDe.h:185
void SetCompression(OrcCompression value)
Definition OrcSerDe.h:143
bool BlockSizeBytesHasBeenSet() const
Definition OrcSerDe.h:65
AWS_FIREHOSE_API OrcSerDe(Aws::Utils::Json::JsonView jsonValue)
bool PaddingToleranceHasBeenSet() const
Definition OrcSerDe.h:125
AWS_FIREHOSE_API OrcSerDe & operator=(Aws::Utils::Json::JsonView jsonValue)
OrcCompression GetCompression() const
Definition OrcSerDe.h:141
OrcSerDe & WithPaddingTolerance(double value)
Definition OrcSerDe.h:130
void SetFormatVersion(OrcFormatVersion value)
Definition OrcSerDe.h:222
void SetRowIndexStride(int value)
Definition OrcSerDe.h:83
void SetBloomFilterColumns(BloomFilterColumnsT &&value)
Definition OrcSerDe.h:161
const Aws::Vector< Aws::String > & GetBloomFilterColumns() const
Definition OrcSerDe.h:158
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue