Class CfnDeliveryStream.ParquetSerDeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.ParquetSerDeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryStream.ParquetSerDeProperty>
- Enclosing interface:
CfnDeliveryStream.ParquetSerDeProperty
@Stability(Stable)
public static final class CfnDeliveryStream.ParquetSerDeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryStream.ParquetSerDeProperty>
A builder for
CfnDeliveryStream.ParquetSerDeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionblockSizeBytes
(Number blockSizeBytes) Sets the value ofCfnDeliveryStream.ParquetSerDeProperty.getBlockSizeBytes()
build()
Builds the configured instance.compression
(String compression) Sets the value ofCfnDeliveryStream.ParquetSerDeProperty.getCompression()
enableDictionaryCompression
(Boolean enableDictionaryCompression) Sets the value ofCfnDeliveryStream.ParquetSerDeProperty.getEnableDictionaryCompression()
enableDictionaryCompression
(IResolvable enableDictionaryCompression) Sets the value ofCfnDeliveryStream.ParquetSerDeProperty.getEnableDictionaryCompression()
maxPaddingBytes
(Number maxPaddingBytes) Sets the value ofCfnDeliveryStream.ParquetSerDeProperty.getMaxPaddingBytes()
pageSizeBytes
(Number pageSizeBytes) Sets the value ofCfnDeliveryStream.ParquetSerDeProperty.getPageSizeBytes()
writerVersion
(String writerVersion) Sets the value ofCfnDeliveryStream.ParquetSerDeProperty.getWriterVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blockSizeBytes
@Stability(Stable) public CfnDeliveryStream.ParquetSerDeProperty.Builder blockSizeBytes(Number blockSizeBytes) Sets the value ofCfnDeliveryStream.ParquetSerDeProperty.getBlockSizeBytes()
- Parameters:
blockSizeBytes
- The Hadoop Distributed File System (HDFS) block size. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 256 MiB and the minimum is 64 MiB. Kinesis Data Firehose uses this value for padding calculations.- Returns:
this
-
compression
@Stability(Stable) public CfnDeliveryStream.ParquetSerDeProperty.Builder compression(String compression) Sets the value ofCfnDeliveryStream.ParquetSerDeProperty.getCompression()
- Parameters:
compression
- The compression code to use over data blocks. The possible values areUNCOMPRESSED
,SNAPPY
, andGZIP
, with the default beingSNAPPY
. UseSNAPPY
for higher decompression speed. UseGZIP
if the compression ratio is more important than speed.- Returns:
this
-
enableDictionaryCompression
@Stability(Stable) public CfnDeliveryStream.ParquetSerDeProperty.Builder enableDictionaryCompression(Boolean enableDictionaryCompression) Sets the value ofCfnDeliveryStream.ParquetSerDeProperty.getEnableDictionaryCompression()
- Parameters:
enableDictionaryCompression
- Indicates whether to enable dictionary compression.- Returns:
this
-
enableDictionaryCompression
@Stability(Stable) public CfnDeliveryStream.ParquetSerDeProperty.Builder enableDictionaryCompression(IResolvable enableDictionaryCompression) Sets the value ofCfnDeliveryStream.ParquetSerDeProperty.getEnableDictionaryCompression()
- Parameters:
enableDictionaryCompression
- Indicates whether to enable dictionary compression.- Returns:
this
-
maxPaddingBytes
@Stability(Stable) public CfnDeliveryStream.ParquetSerDeProperty.Builder maxPaddingBytes(Number maxPaddingBytes) Sets the value ofCfnDeliveryStream.ParquetSerDeProperty.getMaxPaddingBytes()
- Parameters:
maxPaddingBytes
- The maximum amount of padding to apply. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 0.- Returns:
this
-
pageSizeBytes
@Stability(Stable) public CfnDeliveryStream.ParquetSerDeProperty.Builder pageSizeBytes(Number pageSizeBytes) Sets the value ofCfnDeliveryStream.ParquetSerDeProperty.getPageSizeBytes()
- Parameters:
pageSizeBytes
- The Parquet page size. Column chunks are divided into pages. A page is conceptually an indivisible unit (in terms of compression and encoding). The minimum value is 64 KiB and the default is 1 MiB.- Returns:
this
-
writerVersion
@Stability(Stable) public CfnDeliveryStream.ParquetSerDeProperty.Builder writerVersion(String writerVersion) Sets the value ofCfnDeliveryStream.ParquetSerDeProperty.getWriterVersion()
- Parameters:
writerVersion
- Indicates the version of row format to output. The possible values areV1
andV2
. The default isV1
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeliveryStream.ParquetSerDeProperty>
- Returns:
- a new instance of
CfnDeliveryStream.ParquetSerDeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-