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_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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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