pub struct DataFileBuilder { /* private fields */ }
Expand description

Builder for DataFile.

Implementations§

source§

impl DataFileBuilder

source

pub fn with_content(&mut self, value: Content) -> &mut DataFileBuilder

Type of content in data file.

source

pub fn with_file_path(&mut self, value: String) -> &mut DataFileBuilder

Full URI for the file with a FS scheme.

source

pub fn with_file_format(&mut self, value: FileFormat) -> &mut DataFileBuilder

String file format name, avro, orc or parquet

source

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

source

pub fn with_record_count(&mut self, value: i64) -> &mut DataFileBuilder

Number of records in this file

source

pub fn with_file_size_in_bytes(&mut self, value: i64) -> &mut DataFileBuilder

Total file size in bytes

source

pub fn with_column_sizes( &mut self, value: Option<AvroMap<i64>> ) -> &mut DataFileBuilder

Map from column id to total size on disk

source

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)

source

pub fn with_null_value_counts( &mut self, value: Option<AvroMap<i64>> ) -> &mut DataFileBuilder

Map from column id to number of null values

source

pub fn with_nan_value_counts( &mut self, value: Option<AvroMap<i64>> ) -> &mut DataFileBuilder

Map from column id to number of NaN values

source

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.

source

pub fn with_lower_bounds( &mut self, value: Option<HashMap<i32, Value>> ) -> &mut DataFileBuilder

Map from column id to lower bound in the column

source

pub fn with_upper_bounds( &mut self, value: Option<HashMap<i32, Value>> ) -> &mut DataFileBuilder

Map from column id to upper bound in the column

source

pub fn with_key_metadata( &mut self, value: Option<ByteBuf> ) -> &mut DataFileBuilder

Implementation specific key metadata for encryption

source

pub fn with_split_offsets( &mut self, value: Option<Vec<i64>> ) -> &mut DataFileBuilder

Split offsets for the data file.

source

pub fn with_equality_ids( &mut self, value: Option<Vec<i32>> ) -> &mut DataFileBuilder

Field ids used to determine row equality in equality delete files.

source

pub fn with_sort_order_id(&mut self, value: Option<i32>) -> &mut DataFileBuilder

ID representing sort order for this file

source

pub fn build(&self) -> Result<DataFile, DataFileBuilderError>

Builds a new DataFile.

§Errors

If a required field has not been initialized.

Trait Implementations§

source§

impl Clone for DataFileBuilder

source§

fn clone(&self) -> DataFileBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for DataFileBuilder

source§

fn default() -> DataFileBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,