Class ParquetOutputFormatProps.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.ParquetOutputFormatProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ParquetOutputFormatProps>
- Enclosing interface:
ParquetOutputFormatProps
@Stability(Stable)
public static final class ParquetOutputFormatProps.Builder
extends Object
implements software.amazon.jsii.Builder<ParquetOutputFormatProps>
A builder for
ParquetOutputFormatProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofParquetOutputFormatProps.getBlockSize()build()Builds the configured instance.compression(ParquetCompression compression) Sets the value ofParquetOutputFormatProps.getCompression()enableDictionaryCompression(Boolean enableDictionaryCompression) Sets the value ofParquetOutputFormatProps.getEnableDictionaryCompression()maxPadding(Size maxPadding) Sets the value ofParquetOutputFormatProps.getMaxPadding()Sets the value ofParquetOutputFormatProps.getPageSize()writerVersion(ParquetWriterVersion writerVersion) Sets the value ofParquetOutputFormatProps.getWriterVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blockSize
Sets the value ofParquetOutputFormatProps.getBlockSize()- Parameters:
blockSize- 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. Firehose uses this value for padding calculations.- Returns:
this
-
compression
@Stability(Stable) public ParquetOutputFormatProps.Builder compression(ParquetCompression compression) Sets the value ofParquetOutputFormatProps.getCompression()- Parameters:
compression- The compression code to use over data blocks. The possible values areUNCOMPRESSED,SNAPPY, andGZIP. UseSNAPPYfor higher decompression speed. UseGZIPif the compression ratio is more important than speed.- Returns:
this
-
enableDictionaryCompression
@Stability(Stable) public ParquetOutputFormatProps.Builder enableDictionaryCompression(Boolean enableDictionaryCompression) Sets the value ofParquetOutputFormatProps.getEnableDictionaryCompression()- Parameters:
enableDictionaryCompression- Indicates whether to enable dictionary compression.- Returns:
this
-
maxPadding
Sets the value ofParquetOutputFormatProps.getMaxPadding()- Parameters:
maxPadding- The maximum amount of padding to apply. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying.- Returns:
this
-
pageSize
Sets the value ofParquetOutputFormatProps.getPageSize()- Parameters:
pageSize- 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 ParquetOutputFormatProps.Builder writerVersion(ParquetWriterVersion writerVersion) Sets the value ofParquetOutputFormatProps.getWriterVersion()- Parameters:
writerVersion- Indicates the version of Parquet to output. The possible values areV1andV2- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ParquetOutputFormatProps>- Returns:
- a new instance of
ParquetOutputFormatProps - Throws:
NullPointerException- if any required attribute was not provided
-