Class OrcOutputFormatProps.Builder

java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.OrcOutputFormatProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<OrcOutputFormatProps>
Enclosing interface:
OrcOutputFormatProps

@Stability(Stable) public static final class OrcOutputFormatProps.Builder extends Object implements software.amazon.jsii.Builder<OrcOutputFormatProps>
A builder for OrcOutputFormatProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • blockSize

      @Stability(Stable) public OrcOutputFormatProps.Builder blockSize(Size blockSize)
      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
    • bloomFilterColumns

      @Stability(Stable) public OrcOutputFormatProps.Builder bloomFilterColumns(List<String> bloomFilterColumns)
      Parameters:
      bloomFilterColumns - The column names for which you want Firehose to create bloom filters.
      Returns:
      this
    • bloomFilterFalsePositiveProbability

      @Stability(Stable) public OrcOutputFormatProps.Builder bloomFilterFalsePositiveProbability(Number bloomFilterFalsePositiveProbability)
      Parameters:
      bloomFilterFalsePositiveProbability - The Bloom filter false positive probability (FPP). The lower the FPP, the bigger the bloom filter.
      Returns:
      this
    • compression

      @Stability(Stable) public OrcOutputFormatProps.Builder compression(OrcCompression compression)
      Parameters:
      compression - The compression code to use over data blocks. The possible values are NONE , SNAPPY , and ZLIB. Use SNAPPY for higher decompression speed. Use GZIP if the compression ratio is more important than speed.
      Returns:
      this
    • dictionaryKeyThreshold

      @Stability(Stable) public OrcOutputFormatProps.Builder dictionaryKeyThreshold(Number dictionaryKeyThreshold)
      Parameters:
      dictionaryKeyThreshold - Determines whether dictionary encoding should be applied to a column. If the number of distinct keys (unique values) in a column exceeds this fraction of the total non-null rows in that column, dictionary encoding will be turned off for that specific column.

      To turn off dictionary encoding, set this threshold to 0. To always use dictionary encoding, set this threshold to 1.

      Returns:
      this
    • enablePadding

      @Stability(Stable) public OrcOutputFormatProps.Builder enablePadding(Boolean enablePadding)
      Parameters:
      enablePadding - Set this to true to 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.
      Returns:
      this
    • formatVersion

      @Stability(Stable) public OrcOutputFormatProps.Builder formatVersion(OrcFormatVersion formatVersion)
      Parameters:
      formatVersion - The version of the ORC format to write. The possible values are V0_11 and V0_12.
      Returns:
      this
    • paddingTolerance

      @Stability(Stable) public OrcOutputFormatProps.Builder paddingTolerance(Number paddingTolerance)
      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 EnablePadding is false .

      Returns:
      this
    • rowIndexStride

      @Stability(Stable) public OrcOutputFormatProps.Builder rowIndexStride(Number rowIndexStride)
      Parameters:
      rowIndexStride - The number of rows between index entries.
      Returns:
      this
    • stripeSize

      @Stability(Stable) public OrcOutputFormatProps.Builder stripeSize(Size stripeSize)
      Parameters:
      stripeSize - The number of bytes in each stripe. The default is 64 MiB and the minimum is 8 MiB.
      Returns:
      this
    • build

      @Stability(Stable) public OrcOutputFormatProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<OrcOutputFormatProps>
      Returns:
      a new instance of OrcOutputFormatProps
      Throws:
      NullPointerException - if any required attribute was not provided