Struct iceberg_rust_spec::spec::manifest::DataFileBuilder
source · pub struct DataFileBuilder { /* private fields */ }Expand description
Builder for DataFile.
Implementations§
source§impl DataFileBuilder
impl DataFileBuilder
sourcepub fn with_content(&mut self, value: Content) -> &mut Self
pub fn with_content(&mut self, value: Content) -> &mut Self
Type of content in data file.
sourcepub fn with_file_path(&mut self, value: String) -> &mut Self
pub fn with_file_path(&mut self, value: String) -> &mut Self
Full URI for the file with a FS scheme.
sourcepub fn with_file_format(&mut self, value: FileFormat) -> &mut Self
pub fn with_file_format(&mut self, value: FileFormat) -> &mut Self
String file format name, avro, orc or parquet
sourcepub fn with_partition(&mut self, value: Struct) -> &mut Self
pub fn with_partition(&mut self, value: Struct) -> &mut Self
Partition data tuple, schema based on the partition spec output using partition field ids for the struct field ids
sourcepub fn with_record_count(&mut self, value: i64) -> &mut Self
pub fn with_record_count(&mut self, value: i64) -> &mut Self
Number of records in this file
sourcepub fn with_file_size_in_bytes(&mut self, value: i64) -> &mut Self
pub fn with_file_size_in_bytes(&mut self, value: i64) -> &mut Self
Total file size in bytes
sourcepub fn with_column_sizes(&mut self, value: Option<AvroMap<i64>>) -> &mut Self
pub fn with_column_sizes(&mut self, value: Option<AvroMap<i64>>) -> &mut Self
Map from column id to total size on disk
sourcepub fn with_value_counts(&mut self, value: Option<AvroMap<i64>>) -> &mut Self
pub fn with_value_counts(&mut self, value: Option<AvroMap<i64>>) -> &mut Self
Map from column id to number of values in the column (including null and NaN values)
sourcepub fn with_null_value_counts(
&mut self,
value: Option<AvroMap<i64>>
) -> &mut Self
pub fn with_null_value_counts( &mut self, value: Option<AvroMap<i64>> ) -> &mut Self
Map from column id to number of null values
sourcepub fn with_nan_value_counts(
&mut self,
value: Option<AvroMap<i64>>
) -> &mut Self
pub fn with_nan_value_counts( &mut self, value: Option<AvroMap<i64>> ) -> &mut Self
Map from column id to number of NaN values
sourcepub fn with_distinct_counts(&mut self, value: Option<AvroMap<i64>>) -> &mut Self
pub fn with_distinct_counts(&mut self, value: Option<AvroMap<i64>>) -> &mut Self
Map from column id to number of distinct values in the column.
sourcepub fn with_lower_bounds(
&mut self,
value: Option<HashMap<i32, Value>>
) -> &mut Self
pub fn with_lower_bounds( &mut self, value: Option<HashMap<i32, Value>> ) -> &mut Self
Map from column id to lower bound in the column
sourcepub fn with_upper_bounds(
&mut self,
value: Option<HashMap<i32, Value>>
) -> &mut Self
pub fn with_upper_bounds( &mut self, value: Option<HashMap<i32, Value>> ) -> &mut Self
Map from column id to upper bound in the column
sourcepub fn with_key_metadata(&mut self, value: Option<ByteBuf>) -> &mut Self
pub fn with_key_metadata(&mut self, value: Option<ByteBuf>) -> &mut Self
Implementation specific key metadata for encryption
sourcepub fn with_split_offsets(&mut self, value: Option<Vec<i64>>) -> &mut Self
pub fn with_split_offsets(&mut self, value: Option<Vec<i64>>) -> &mut Self
Split offsets for the data file.
sourcepub fn with_equality_ids(&mut self, value: Option<Vec<i32>>) -> &mut Self
pub fn with_equality_ids(&mut self, value: Option<Vec<i32>>) -> &mut Self
Field ids used to determine row equality in equality delete files.
sourcepub fn with_sort_order_id(&mut self, value: Option<i32>) -> &mut Self
pub fn with_sort_order_id(&mut self, value: Option<i32>) -> &mut Self
ID representing sort order for this file
Trait Implementations§
source§impl Clone for DataFileBuilder
impl Clone for DataFileBuilder
source§fn clone(&self) -> DataFileBuilder
fn clone(&self) -> DataFileBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more