libcudf
23.12.00
|
Builds options for chunked_parquet_writer_options. More...
#include <parquet.hpp>
Public Member Functions | |
chunked_parquet_writer_options_builder ()=default | |
Default constructor. More... | |
chunked_parquet_writer_options_builder (sink_info const &sink) | |
Constructor from sink. More... | |
chunked_parquet_writer_options_builder & | metadata (table_input_metadata metadata) |
Sets metadata to chunked_parquet_writer_options. More... | |
chunked_parquet_writer_options_builder & | key_value_metadata (std::vector< std::map< std::string, std::string >> metadata) |
Sets Key-Value footer metadata in parquet_writer_options. More... | |
chunked_parquet_writer_options_builder & | stats_level (statistics_freq sf) |
Sets the level of statistics in chunked_parquet_writer_options. More... | |
chunked_parquet_writer_options_builder & | compression (compression_type compression) |
Sets compression type to chunked_parquet_writer_options. More... | |
chunked_parquet_writer_options_builder & | int96_timestamps (bool enabled) |
Set to true if timestamps should be written as int96 types instead of int64 types. Even though int96 is deprecated and is not an internal type for cudf, it needs to be written for backwards compatibility reasons. More... | |
chunked_parquet_writer_options_builder & | utc_timestamps (bool enabled) |
Set to true if timestamps are to be written as UTC. More... | |
chunked_parquet_writer_options_builder & | write_v2_headers (bool enabled) |
Set to true if V2 page headers are to be written. More... | |
chunked_parquet_writer_options_builder & | row_group_size_bytes (size_t val) |
Sets the maximum row group size, in bytes. More... | |
chunked_parquet_writer_options_builder & | row_group_size_rows (size_type val) |
Sets the maximum number of rows in output row groups. More... | |
chunked_parquet_writer_options_builder & | max_page_size_bytes (size_t val) |
Sets the maximum uncompressed page size, in bytes. More... | |
chunked_parquet_writer_options_builder & | max_page_size_rows (size_type val) |
Sets the maximum page size, in rows. Counts only top-level rows, ignoring any nesting. Cannot be larger than the row group size in rows, and will be adjusted to match if it is. More... | |
chunked_parquet_writer_options_builder & | column_index_truncate_length (int32_t val) |
Sets the desired maximum size in bytes for min and max values in the column index. More... | |
chunked_parquet_writer_options_builder & | dictionary_policy (enum dictionary_policy val) |
Sets the policy for dictionary use. More... | |
chunked_parquet_writer_options_builder & | max_dictionary_size (size_t val) |
Sets the maximum dictionary size, in bytes. More... | |
chunked_parquet_writer_options_builder & | max_page_fragment_size (size_type val) |
Sets the maximum page fragment size, in rows. More... | |
chunked_parquet_writer_options_builder & | compression_statistics (std::shared_ptr< writer_compression_statistics > const &comp_stats) |
Sets the pointer to the output compression statistics. More... | |
operator chunked_parquet_writer_options && () | |
move chunked_parquet_writer_options member once it's built. | |
chunked_parquet_writer_options && | build () |
move chunked_parquet_writer_options member once it's is built. More... | |
Builds options for chunked_parquet_writer_options.
Definition at line 1509 of file parquet.hpp.
|
default |
Default constructor.
This has been added since Cython requires a default constructor to create objects on stack.
|
inline |
Constructor from sink.
sink | The sink used for writer output |
Definition at line 1525 of file parquet.hpp.
|
inline |
move chunked_parquet_writer_options member once it's is built.
This has been added since Cython does not support overloading of conversion operators.
chunked_parquet_writer_options
object's r-value reference Definition at line 1747 of file parquet.hpp.
|
inline |
Sets the desired maximum size in bytes for min and max values in the column index.
Values exceeding this limit will be truncated, but modified such that they will still be valid lower and upper bounds. This only applies to variable length types, such as string. Maximum values will not be truncated if there is no suitable truncation that results in a valid upper bound.
Default value is 64.
val | length min/max will be truncated to, with 0 indicating no truncation |
Definition at line 1672 of file parquet.hpp.
|
inline |
Sets compression type to chunked_parquet_writer_options.
compression | The compression type to use |
Definition at line 1566 of file parquet.hpp.
|
inline |
Sets the pointer to the output compression statistics.
comp_stats | Pointer to compression statistics to be filled once writer is done |
Definition at line 1728 of file parquet.hpp.
chunked_parquet_writer_options_builder& cudf::io::chunked_parquet_writer_options_builder::dictionary_policy | ( | enum dictionary_policy | val | ) |
Sets the policy for dictionary use.
Certain compression algorithms (e.g Zstandard) have limits on how large of a buffer can be compressed. In some circumstances, the dictionary can grow beyond this limit, which will prevent the column from being compressed. This setting controls how the writer should act in these circumstances. A setting of dictionary_policy::ADAPTIVE will disable dictionary encoding for columns where the dictionary exceeds the limit. A setting of dictionary_policy::NEVER will disable the use of dictionary encoding globally. A setting of dictionary_policy::ALWAYS will allow the use of dictionary encoding even if it will result in the disabling of compression for columns that would otherwise be compressed.
The default value is dictionary_policy::ALWAYS.
val | policy for dictionary use |
|
inline |
Set to true if timestamps should be written as int96 types instead of int64 types. Even though int96 is deprecated and is not an internal type for cudf, it needs to be written for backwards compatibility reasons.
enabled | Boolean value to enable/disable int96 timestamps |
Definition at line 1581 of file parquet.hpp.
chunked_parquet_writer_options_builder& cudf::io::chunked_parquet_writer_options_builder::key_value_metadata | ( | std::vector< std::map< std::string, std::string >> | metadata | ) |
Sets Key-Value footer metadata in parquet_writer_options.
metadata | Key-Value footer metadata |
chunked_parquet_writer_options_builder& cudf::io::chunked_parquet_writer_options_builder::max_dictionary_size | ( | size_t | val | ) |
Sets the maximum dictionary size, in bytes.
Disables dictionary encoding for any column chunk where the dictionary will exceed this limit. Only used when the dictionary_policy is set to 'ADAPTIVE'.
Default value is 1048576 (1MiB).
val | maximum dictionary size |
chunked_parquet_writer_options_builder& cudf::io::chunked_parquet_writer_options_builder::max_page_fragment_size | ( | size_type | val | ) |
Sets the maximum page fragment size, in rows.
Files with nested schemas or very long strings may need a page fragment size smaller than the default value of 5000 to ensure a single fragment will not exceed the desired maximum page size in bytes.
val | maximum page fragment size |
|
inline |
Sets the maximum uncompressed page size, in bytes.
Serves as a hint to the writer, and can be exceeded under certain circumstances. Cannot be larger than the row group size in bytes, and will be adjusted to match if it is.
val | maximum page size |
Definition at line 1640 of file parquet.hpp.
|
inline |
Sets the maximum page size, in rows. Counts only top-level rows, ignoring any nesting. Cannot be larger than the row group size in rows, and will be adjusted to match if it is.
val | maximum rows per page |
Definition at line 1653 of file parquet.hpp.
|
inline |
Sets metadata to chunked_parquet_writer_options.
metadata | Associated metadata |
Definition at line 1533 of file parquet.hpp.
|
inline |
Sets the maximum row group size, in bytes.
val | maximum row group size |
Definition at line 1613 of file parquet.hpp.
|
inline |
Sets the maximum number of rows in output row groups.
val | maximum number or rows |
Definition at line 1625 of file parquet.hpp.
|
inline |
Sets the level of statistics in chunked_parquet_writer_options.
sf | Level of statistics requested in the output file |
Definition at line 1554 of file parquet.hpp.
|
inline |
Set to true if timestamps are to be written as UTC.
enabled | Boolean value to enable/disable writing of timestamps as UTC. |
Definition at line 1593 of file parquet.hpp.
chunked_parquet_writer_options_builder& cudf::io::chunked_parquet_writer_options_builder::write_v2_headers | ( | bool | enabled | ) |
Set to true if V2 page headers are to be written.
enabled | Boolean value to enable/disable writing of V2 page headers. |