Skip to content

ParquetSerDe

Source code in docs_src/capo_firehose/types/parquet_ser_de.py
class ParquetSerDe(TypedDict, closed=True):
    block_size_bytes: NotRequired["capo_firehose.types.block_size_bytes.BlockSizeBytes"]
    """<p>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.</p>"""
    page_size_bytes: NotRequired[
        "capo_firehose.types.parquet_page_size_bytes.ParquetPageSizeBytes"
    ]
    """<p>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.</p>"""
    compression: NotRequired[
        "capo_firehose.types.parquet_compression.ParquetCompression"
    ]
    """<p>The compression code to use over data blocks. The possible values are <code>UNCOMPRESSED</code>, <code>SNAPPY</code>, and <code>GZIP</code>, with the default being <code>SNAPPY</code>. Use <code>SNAPPY</code> for higher decompression speed. Use <code>GZIP</code> if the compression ratio is more important than speed.</p>"""
    enable_dictionary_compression: NotRequired[
        "capo_firehose.types.boolean_object.BooleanObject"
    ]
    """<p>Indicates whether to enable dictionary compression.</p>"""
    max_padding_bytes: NotRequired[
        "capo_firehose.types.non_negative_integer_object.NonNegativeIntegerObject"
    ]
    """<p>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.</p>"""
    writer_version: NotRequired[
        "capo_firehose.types.parquet_writer_version.ParquetWriterVersion"
    ]
    """<p>Indicates the version of row format to output. The possible values are <code>V1</code> and <code>V2</code>. The default is <code>V1</code>.</p>"""

block_size_bytes instance-attribute

block_size_bytes: NotRequired[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.

compression instance-attribute

compression: NotRequired[ParquetCompression]

The compression code to use over data blocks. The possible values are UNCOMPRESSED, SNAPPY, and GZIP, with the default being SNAPPY. Use SNAPPY for higher decompression speed. Use GZIP if the compression ratio is more important than speed.

enable_dictionary_compression instance-attribute

enable_dictionary_compression: NotRequired[BooleanObject]

Indicates whether to enable dictionary compression.

max_padding_bytes instance-attribute

max_padding_bytes: NotRequired[NonNegativeIntegerObject]

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.

page_size_bytes instance-attribute

page_size_bytes: NotRequired[ParquetPageSizeBytes]

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.

writer_version instance-attribute

writer_version: NotRequired[ParquetWriterVersion]

Indicates the version of row format to output. The possible values are V1 and V2. The default is V1.