Struct iceberg::spec::DataFileBuilder
source · pub struct DataFileBuilder { /* private fields */ }
Expand description
Builder for DataFile
.
Implementations§
source§impl DataFileBuilder
impl DataFileBuilder
sourcepub fn content(&mut self, value: DataContentType) -> &mut Self
pub fn 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 file_path(&mut self, value: String) -> &mut Self
pub fn file_path(&mut self, value: String) -> &mut Self
field id: 100
Full URI for the file with FS scheme
sourcepub fn file_format(&mut self, value: DataFileFormat) -> &mut Self
pub fn file_format(&mut self, value: DataFileFormat) -> &mut Self
field id: 101
String file format name, avro, orc or parquet
sourcepub fn partition(&mut self, value: Struct) -> &mut Self
pub fn partition(&mut self, value: Struct) -> &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 record_count(&mut self, value: u64) -> &mut Self
pub fn record_count(&mut self, value: u64) -> &mut Self
field id: 103
Number of records in this file
sourcepub fn file_size_in_bytes(&mut self, value: u64) -> &mut Self
pub fn file_size_in_bytes(&mut self, value: u64) -> &mut Self
field id: 104
Total file size in bytes
sourcepub fn column_sizes(&mut self, value: HashMap<i32, u64>) -> &mut Self
pub fn column_sizes(&mut self, value: HashMap<i32, u64>) -> &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 value_counts(&mut self, value: HashMap<i32, u64>) -> &mut Self
pub fn value_counts(&mut self, value: HashMap<i32, u64>) -> &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 null_value_counts(&mut self, value: HashMap<i32, u64>) -> &mut Self
pub fn null_value_counts(&mut self, value: HashMap<i32, u64>) -> &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 nan_value_counts(&mut self, value: HashMap<i32, u64>) -> &mut Self
pub fn nan_value_counts(&mut self, value: HashMap<i32, u64>) -> &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 lower_bounds(&mut self, value: HashMap<i32, Datum>) -> &mut Self
pub fn lower_bounds(&mut self, value: HashMap<i32, Datum>) -> &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 upper_bounds(&mut self, value: HashMap<i32, Datum>) -> &mut Self
pub fn upper_bounds(&mut self, value: HashMap<i32, Datum>) -> &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 key_metadata(&mut self, value: Vec<u8>) -> &mut Self
pub fn key_metadata(&mut self, value: Vec<u8>) -> &mut Self
field id: 131
Implementation-specific key metadata for encryption
sourcepub fn split_offsets(&mut self, value: Vec<i64>) -> &mut Self
pub fn 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 equality_ids(&mut self, value: Vec<i32>) -> &mut Self
pub fn 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 sort_order_id(&mut self, value: i32) -> &mut Self
pub fn 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 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 moreAuto Trait Implementations§
impl Freeze for DataFileBuilder
impl RefUnwindSafe for DataFileBuilder
impl Send for DataFileBuilder
impl Sync for DataFileBuilder
impl Unpin for DataFileBuilder
impl UnwindSafe for DataFileBuilder
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
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§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.§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.§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.§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.§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.§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.§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.§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.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§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 more§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 more§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
§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
§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.§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.§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.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Tap for T
impl<T> Tap for T
§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 more§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 more§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 more§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 more§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 more§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 more§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.§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.§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.§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.§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.§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.§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.