pub struct DataFileBuilderV2 { /* private fields */ }Expand description
Builder for DataFile.
Implementations§
Source§impl DataFileBuilderV2
impl DataFileBuilderV2
Sourcepub fn with_content(&mut self, value: DataContentType) -> &mut Self
pub fn with_content(&mut self, value: DataContentType) -> &mut Self
field id: 134
Type of content stored by the data file: data, equality deletes, or position deletes (all v1 files are data files)
Sourcepub fn with_file_path(&mut self, value: String) -> &mut Self
pub fn with_file_path(&mut self, value: String) -> &mut Self
field id: 100
Full URI for the file with FS scheme
Sourcepub fn with_file_format(&mut self, value: DataFileFormat) -> &mut Self
pub fn with_file_format(&mut self, value: DataFileFormat) -> &mut Self
field id: 101
String file format name, avro, orc or parquet
Sourcepub fn with_partition(&mut self, value: StructValue) -> &mut Self
pub fn with_partition(&mut self, value: StructValue) -> &mut Self
field id: 102
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
field id: 103
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
field id: 104
Total file size in bytes
Sourcepub fn with_column_sizes(&mut self, value: HashMap<i32, i64>) -> &mut Self
pub fn with_column_sizes(&mut self, value: HashMap<i32, i64>) -> &mut Self
field id: 108 key field id: 117 value field id: 118
Map from column id to the total size on disk of all regions that store the column. Does not include bytes necessary to read other columns, like footers. Leave null for row-oriented formats (Avro)
Sourcepub fn with_value_counts(&mut self, value: HashMap<i32, i64>) -> &mut Self
pub fn with_value_counts(&mut self, value: HashMap<i32, i64>) -> &mut Self
field id: 109 key field id: 119 value field id: 120
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: HashMap<i32, i64>) -> &mut Self
pub fn with_null_value_counts(&mut self, value: HashMap<i32, i64>) -> &mut Self
field id: 110 key field id: 121 value field id: 122
Map from column id to number of null values in the column
Sourcepub fn with_nan_value_counts(&mut self, value: HashMap<i32, i64>) -> &mut Self
pub fn with_nan_value_counts(&mut self, value: HashMap<i32, i64>) -> &mut Self
field id: 137 key field id: 138 value field id: 139
Map from column id to number of NaN values in the column
Sourcepub fn with_distinct_counts(&mut self, value: HashMap<i32, i64>) -> &mut Self
pub fn with_distinct_counts(&mut self, value: HashMap<i32, i64>) -> &mut Self
field id: 111 key field id: 123 value field id: 124
Map from column id to number of distinct values in the column; distinct counts must be derived using values in the file by counting or using sketches, but not using methods like merging existing distinct counts
Sourcepub fn with_lower_bounds(&mut self, value: HashMap<i32, Vec<u8>>) -> &mut Self
pub fn with_lower_bounds(&mut self, value: HashMap<i32, Vec<u8>>) -> &mut Self
field id: 125 key field id: 126 value field id: 127
Map from column id to lower bound in the column serialized as binary. Each value must be less than or equal to all non-null, non-NaN values in the column for the file.
Reference:
Sourcepub fn with_upper_bounds(&mut self, value: HashMap<i32, Vec<u8>>) -> &mut Self
pub fn with_upper_bounds(&mut self, value: HashMap<i32, Vec<u8>>) -> &mut Self
field id: 128 key field id: 129 value field id: 130
Map from column id to upper bound in the column serialized as binary. Each value must be greater than or equal to all non-null, non-Nan values in the column for the file.
Reference:
Sourcepub fn with_key_metadata(&mut self, value: Option<Vec<u8>>) -> &mut Self
pub fn with_key_metadata(&mut self, value: Option<Vec<u8>>) -> &mut Self
field id: 131
Implementation-specific key metadata for encryption
Sourcepub fn with_split_offsets(&mut self, value: Vec<i64>) -> &mut Self
pub fn with_split_offsets(&mut self, value: Vec<i64>) -> &mut Self
field id: 132 element field id: 133
Split offsets for the data file. For example, all row group offsets in a Parquet file. Must be sorted ascending
Sourcepub fn with_equality_ids(&mut self, value: Vec<i32>) -> &mut Self
pub fn with_equality_ids(&mut self, value: Vec<i32>) -> &mut Self
field id: 135 element field id: 136
Field ids used to determine row equality in equality delete files. Required when content is EqualityDeletes and should be null otherwise. Fields with ids listed in this column must be present in the delete file
Sourcepub fn with_sort_order_id(&mut self, value: i32) -> &mut Self
pub fn with_sort_order_id(&mut self, value: i32) -> &mut Self
field id: 140
ID representing sort order for this file.
If sort order ID is missing or unknown, then the order is assumed to be unsorted. Only data files and equality delete files should be written with a non-null order id. Position deletes are required to be sorted by file and position, not a table order, and should set sort order id to null. Readers must ignore sort order id for position delete files.
Trait Implementations§
Source§impl Clone for DataFileBuilderV2
impl Clone for DataFileBuilderV2
Source§fn clone(&self) -> DataFileBuilderV2
fn clone(&self) -> DataFileBuilderV2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for DataFileBuilderV2
impl Default for DataFileBuilderV2
Source§impl IcebergWriteResult for DataFileBuilderV2
impl IcebergWriteResult for DataFileBuilderV2
fn set_content(&mut self, content: DataContentType) -> &mut Self
fn set_equality_ids(&mut self, equality_ids: Vec<i32>) -> &mut Self
fn set_partition(&mut self, partition_value: Option<StructValue>) -> &mut Self
Auto Trait Implementations§
impl Freeze for DataFileBuilderV2
impl RefUnwindSafe for DataFileBuilderV2
impl Send for DataFileBuilderV2
impl Sync for DataFileBuilderV2
impl Unpin for DataFileBuilderV2
impl UnwindSafe for DataFileBuilderV2
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.