Class CfnDeliveryStreamPropsMixin.OrcSerDeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kinesisfirehose.CfnDeliveryStreamPropsMixin.OrcSerDeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryStreamPropsMixin.OrcSerDeProperty>
- Enclosing interface:
CfnDeliveryStreamPropsMixin.OrcSerDeProperty
@Stability(Stable)
public static final class CfnDeliveryStreamPropsMixin.OrcSerDeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryStreamPropsMixin.OrcSerDeProperty>
A builder for
CfnDeliveryStreamPropsMixin.OrcSerDeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockSizeBytes(Number blockSizeBytes) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getBlockSizeBytes()bloomFilterColumns(List<String> bloomFilterColumns) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getBloomFilterColumns()bloomFilterFalsePositiveProbability(Number bloomFilterFalsePositiveProbability) build()Builds the configured instance.compression(String compression) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getCompression()dictionaryKeyThreshold(Number dictionaryKeyThreshold) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getDictionaryKeyThreshold()enablePadding(Boolean enablePadding) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getEnablePadding()enablePadding(IResolvable enablePadding) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getEnablePadding()formatVersion(String formatVersion) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getFormatVersion()paddingTolerance(Number paddingTolerance) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getPaddingTolerance()rowIndexStride(Number rowIndexStride) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getRowIndexStride()stripeSizeBytes(Number stripeSizeBytes) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getStripeSizeBytes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blockSizeBytes
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OrcSerDeProperty.Builder blockSizeBytes(Number blockSizeBytes) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.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. Firehose uses this value for padding calculations.- Returns:
this
-
bloomFilterColumns
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OrcSerDeProperty.Builder bloomFilterColumns(List<String> bloomFilterColumns) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getBloomFilterColumns()- Parameters:
bloomFilterColumns- The column names for which you want Firehose to create bloom filters. The default isnull.- Returns:
this
-
bloomFilterFalsePositiveProbability
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OrcSerDeProperty.Builder bloomFilterFalsePositiveProbability(Number bloomFilterFalsePositiveProbability) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getBloomFilterFalsePositiveProbability()- Parameters:
bloomFilterFalsePositiveProbability- The Bloom filter false positive probability (FPP). The lower the FPP, the bigger the Bloom filter. The default value is 0.05, the minimum is 0, and the maximum is 1.- Returns:
this
-
compression
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OrcSerDeProperty.Builder compression(String compression) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getCompression()- Parameters:
compression- The compression code to use over data blocks. The default isSNAPPY.- Returns:
this
-
dictionaryKeyThreshold
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OrcSerDeProperty.Builder dictionaryKeyThreshold(Number dictionaryKeyThreshold) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getDictionaryKeyThreshold()- Parameters:
dictionaryKeyThreshold- Represents the fraction of the total number of non-null rows. To turn off dictionary encoding, set this fraction to a number that is less than the number of distinct keys in a dictionary. To always use dictionary encoding, set this threshold to 1.- Returns:
this
-
enablePadding
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OrcSerDeProperty.Builder enablePadding(Boolean enablePadding) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getEnablePadding()- Parameters:
enablePadding- Set this totrueto indicate that you want stripes to be padded to the HDFS block boundaries. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default isfalse.- Returns:
this
-
enablePadding
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OrcSerDeProperty.Builder enablePadding(IResolvable enablePadding) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getEnablePadding()- Parameters:
enablePadding- Set this totrueto indicate that you want stripes to be padded to the HDFS block boundaries. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default isfalse.- Returns:
this
-
formatVersion
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OrcSerDeProperty.Builder formatVersion(String formatVersion) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getFormatVersion()- Parameters:
formatVersion- The version of the file to write. The possible values areV0_11andV0_12. The default isV0_12.- Returns:
this
-
paddingTolerance
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OrcSerDeProperty.Builder paddingTolerance(Number paddingTolerance) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getPaddingTolerance()- Parameters:
paddingTolerance- A number between 0 and 1 that defines the tolerance for block padding as a decimal fraction of stripe size. The default value is 0.05, which means 5 percent of stripe size.For the default values of 64 MiB ORC stripes and 256 MiB HDFS blocks, the default block padding tolerance of 5 percent reserves a maximum of 3.2 MiB for padding within the 256 MiB block. In such a case, if the available size within the block is more than 3.2 MiB, a new, smaller stripe is inserted to fit within that space. This ensures that no stripe crosses block boundaries and causes remote reads within a node-local task.
Kinesis Data Firehose ignores this parameter when
EnablePaddingisfalse.- Returns:
this
-
rowIndexStride
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OrcSerDeProperty.Builder rowIndexStride(Number rowIndexStride) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getRowIndexStride()- Parameters:
rowIndexStride- The number of rows between index entries. The default is 10,000 and the minimum is 1,000.- Returns:
this
-
stripeSizeBytes
@Stability(Stable) public CfnDeliveryStreamPropsMixin.OrcSerDeProperty.Builder stripeSizeBytes(Number stripeSizeBytes) Sets the value ofCfnDeliveryStreamPropsMixin.OrcSerDeProperty.getStripeSizeBytes()- Parameters:
stripeSizeBytes- The number of bytes in each stripe. The default is 64 MiB and the minimum is 8 MiB.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeliveryStreamPropsMixin.OrcSerDeProperty>- Returns:
- a new instance of
CfnDeliveryStreamPropsMixin.OrcSerDeProperty - Throws:
NullPointerException- if any required attribute was not provided
-