interface OrcSerDeProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.KinesisFirehose.CfnDeliveryStream.OrcSerDeProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awskinesisfirehose#CfnDeliveryStream_OrcSerDeProperty |
![]() | software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.OrcSerDeProperty |
![]() | aws_cdk.aws_kinesisfirehose.CfnDeliveryStream.OrcSerDeProperty |
![]() | aws-cdk-lib » aws_kinesisfirehose » CfnDeliveryStream » OrcSerDeProperty |
A serializer to use for converting data to the ORC format before storing it in Amazon S3.
For more information, see Apache ORC .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesisfirehose as kinesisfirehose } from 'aws-cdk-lib';
const orcSerDeProperty: kinesisfirehose.CfnDeliveryStream.OrcSerDeProperty = {
blockSizeBytes: 123,
bloomFilterColumns: ['bloomFilterColumns'],
bloomFilterFalsePositiveProbability: 123,
compression: 'compression',
dictionaryKeyThreshold: 123,
enablePadding: false,
formatVersion: 'formatVersion',
paddingTolerance: 123,
rowIndexStride: 123,
stripeSizeBytes: 123,
};
Properties
Name | Type | Description |
---|---|---|
block | number | The Hadoop Distributed File System (HDFS) block size. |
bloom | string[] | The column names for which you want Firehose to create bloom filters. |
bloom | number | The Bloom filter false positive probability (FPP). |
compression? | string | The compression code to use over data blocks. |
dictionary | number | Represents the fraction of the total number of non-null rows. |
enable | boolean | IResolvable | Set this to true to indicate that you want stripes to be padded to the HDFS block boundaries. |
format | string | The version of the file to write. |
padding | number | A number between 0 and 1 that defines the tolerance for block padding as a decimal fraction of stripe size. |
row | number | The number of rows between index entries. |
stripe | number | The number of bytes in each stripe. |
blockSizeBytes?
Type:
number
(optional)
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.
bloomFilterColumns?
Type:
string[]
(optional)
The column names for which you want Firehose to create bloom filters.
The default is null
.
bloomFilterFalsePositiveProbability?
Type:
number
(optional)
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.
compression?
Type:
string
(optional)
The compression code to use over data blocks.
The default is SNAPPY
.
dictionaryKeyThreshold?
Type:
number
(optional)
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.
enablePadding?
Type:
boolean |
IResolvable
(optional)
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. The default is false
.
formatVersion?
Type:
string
(optional)
The version of the file to write.
The possible values are V0_11
and V0_12
. The default is V0_12
.
paddingTolerance?
Type:
number
(optional)
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
.
rowIndexStride?
Type:
number
(optional)
The number of rows between index entries.
The default is 10,000 and the minimum is 1,000.
stripeSizeBytes?
Type:
number
(optional)
The number of bytes in each stripe.
The default is 64 MiB and the minimum is 8 MiB.