pub struct ParquetConfig {
pub row_group_strategy: Option<RowGroupStrategy>,
pub row_group_rows: Option<usize>,
pub target_row_group_mb: Option<usize>,
pub max_row_group_mb: Option<usize>,
}Expand description
Parquet-specific tuning for row group sizing.
Fields§
§row_group_strategy: Option<RowGroupStrategy>How to determine the row group size. Default: auto.
row_group_rows: Option<usize>Exact number of rows per group (fixed_rows only).
target_row_group_mb: Option<usize>Target Arrow buffer memory per row group in MB (auto and fixed_memory). Default: 128.
max_row_group_mb: Option<usize>Hard upper bound on row group memory in MB. When set, further reduces computed row count.
Implementations§
Source§impl ParquetConfig
impl ParquetConfig
pub const DEFAULT_TARGET_ROW_GROUP_MB: usize = 128
Sourcepub fn effective_row_group_rows(&self, schema: &SchemaRef) -> Option<usize>
pub fn effective_row_group_rows(&self, schema: &SchemaRef) -> Option<usize>
Compute the effective rows-per-group from schema column types.
Returns None for fixed_rows when row_group_rows is not set (caller
falls back to the parquet library default of 1,048,576 rows).
Trait Implementations§
Source§impl Clone for ParquetConfig
impl Clone for ParquetConfig
Source§fn clone(&self) -> ParquetConfig
fn clone(&self) -> ParquetConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParquetConfig
impl Debug for ParquetConfig
Source§impl Default for ParquetConfig
impl Default for ParquetConfig
Source§fn default() -> ParquetConfig
fn default() -> ParquetConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParquetConfig
impl<'de> Deserialize<'de> for ParquetConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ParquetConfig
impl JsonSchema for ParquetConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ParquetConfig
impl RefUnwindSafe for ParquetConfig
impl Send for ParquetConfig
impl Sync for ParquetConfig
impl Unpin for ParquetConfig
impl UnsafeUnpin for ParquetConfig
impl UnwindSafe for ParquetConfig
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more