Struct iceberg_rust::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 DataFileBuilder
pub fn with_content(&mut self, value: Content) -> &mut DataFileBuilder
Type of content in data file.
sourcepub fn with_file_path(&mut self, value: String) -> &mut DataFileBuilder
pub fn with_file_path(&mut self, value: String) -> &mut DataFileBuilder
Full URI for the file with a FS scheme.
sourcepub fn with_file_format(&mut self, value: FileFormat) -> &mut DataFileBuilder
pub fn with_file_format(&mut self, value: FileFormat) -> &mut DataFileBuilder
String file format name, avro, orc or parquet
sourcepub fn with_partition(&mut self, value: Struct) -> &mut DataFileBuilder
pub fn with_partition(&mut self, value: Struct) -> &mut DataFileBuilder
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 DataFileBuilder
pub fn with_record_count(&mut self, value: i64) -> &mut DataFileBuilder
Number of records in this file
sourcepub fn with_file_size_in_bytes(&mut self, value: i64) -> &mut DataFileBuilder
pub fn with_file_size_in_bytes(&mut self, value: i64) -> &mut DataFileBuilder
Total file size in bytes
sourcepub fn with_column_sizes(
&mut self,
value: Option<AvroMap<i64>>
) -> &mut DataFileBuilder
pub fn with_column_sizes( &mut self, value: Option<AvroMap<i64>> ) -> &mut DataFileBuilder
Map from column id to total size on disk
sourcepub fn with_value_counts(
&mut self,
value: Option<AvroMap<i64>>
) -> &mut DataFileBuilder
pub fn with_value_counts( &mut self, value: Option<AvroMap<i64>> ) -> &mut DataFileBuilder
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 DataFileBuilder
pub fn with_null_value_counts( &mut self, value: Option<AvroMap<i64>> ) -> &mut DataFileBuilder
Map from column id to number of null values
sourcepub fn with_nan_value_counts(
&mut self,
value: Option<AvroMap<i64>>
) -> &mut DataFileBuilder
pub fn with_nan_value_counts( &mut self, value: Option<AvroMap<i64>> ) -> &mut DataFileBuilder
Map from column id to number of NaN values
sourcepub fn with_distinct_counts(
&mut self,
value: Option<AvroMap<i64>>
) -> &mut DataFileBuilder
pub fn with_distinct_counts( &mut self, value: Option<AvroMap<i64>> ) -> &mut DataFileBuilder
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 DataFileBuilder
pub fn with_lower_bounds( &mut self, value: Option<HashMap<i32, Value>> ) -> &mut DataFileBuilder
Map from column id to lower bound in the column
sourcepub fn with_upper_bounds(
&mut self,
value: Option<HashMap<i32, Value>>
) -> &mut DataFileBuilder
pub fn with_upper_bounds( &mut self, value: Option<HashMap<i32, Value>> ) -> &mut DataFileBuilder
Map from column id to upper bound in the column
sourcepub fn with_key_metadata(
&mut self,
value: Option<ByteBuf>
) -> &mut DataFileBuilder
pub fn with_key_metadata( &mut self, value: Option<ByteBuf> ) -> &mut DataFileBuilder
Implementation specific key metadata for encryption
sourcepub fn with_split_offsets(
&mut self,
value: Option<Vec<i64>>
) -> &mut DataFileBuilder
pub fn with_split_offsets( &mut self, value: Option<Vec<i64>> ) -> &mut DataFileBuilder
Split offsets for the data file.
sourcepub fn with_equality_ids(
&mut self,
value: Option<Vec<i32>>
) -> &mut DataFileBuilder
pub fn with_equality_ids( &mut self, value: Option<Vec<i32>> ) -> &mut DataFileBuilder
Field ids used to determine row equality in equality delete files.
sourcepub fn with_sort_order_id(&mut self, value: Option<i32>) -> &mut DataFileBuilder
pub fn with_sort_order_id(&mut self, value: Option<i32>) -> &mut DataFileBuilder
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