pub struct ConvertToDeltaBuilder { /* private fields */ }
Expand description
Build an operation to convert a Parquet table to a DeltaTable
in place
Implementations§
Source§impl ConvertToDeltaBuilder
impl ConvertToDeltaBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ConvertToDeltaBuilder
Sourcepub fn with_log_store(self, log_store: Arc<dyn LogStore>) -> Self
pub fn with_log_store(self, log_store: Arc<dyn LogStore>) -> Self
Provide a LogStore
instance, that points at table location
Sourcepub fn with_location(self, location: impl Into<String>) -> Self
pub fn with_location(self, location: impl Into<String>) -> Self
Specify the path to the location where table data is stored, which could be a path on distributed storage.
If an object store is also passed using with_log_store()
, this path will be ignored.
Sourcepub fn with_storage_options(
self,
storage_options: HashMap<String, String>,
) -> Self
pub fn with_storage_options( self, storage_options: HashMap<String, String>, ) -> Self
Set options used to initialize storage backend
Options may be passed in the HashMap or set as environment variables.
[crate::table::builder::s3_storage_options] describes the available options for the AWS or S3-compliant backend.
If an object store is also passed using with_log_store()
, these options will be ignored.
Sourcepub fn with_partition_schema(
self,
partition_schema: impl IntoIterator<Item = StructField>,
) -> Self
pub fn with_partition_schema( self, partition_schema: impl IntoIterator<Item = StructField>, ) -> Self
Specify the partition schema of the Parquet table
Sourcepub fn with_partition_strategy(self, strategy: PartitionStrategy) -> Self
pub fn with_partition_strategy(self, strategy: PartitionStrategy) -> Self
Specify the partition strategy of the Parquet table Currently only hive-partitioning is supproted for Parquet paths
Sourcepub fn with_save_mode(self, save_mode: SaveMode) -> Self
pub fn with_save_mode(self, save_mode: SaveMode) -> Self
Specify the behavior when a table exists at location
Sourcepub fn with_table_name(self, name: impl Into<String>) -> Self
pub fn with_table_name(self, name: impl Into<String>) -> Self
Specify the table name. Optionally qualified with a database name [database_name.] table_name.
Sourcepub fn with_comment(self, comment: impl Into<String>) -> Self
pub fn with_comment(self, comment: impl Into<String>) -> Self
Comment to describe the table.
Sourcepub fn with_configuration(
self,
configuration: impl IntoIterator<Item = (impl Into<String>, Option<impl Into<String>>)>,
) -> Self
pub fn with_configuration( self, configuration: impl IntoIterator<Item = (impl Into<String>, Option<impl Into<String>>)>, ) -> Self
Set configuration on created table
Sourcepub fn with_configuration_property(
self,
key: TableProperty,
value: Option<impl Into<String>>,
) -> Self
pub fn with_configuration_property( self, key: TableProperty, value: Option<impl Into<String>>, ) -> Self
Specify a table property in the table configuration
Sourcepub fn with_metadata(self, metadata: Map<String, Value>) -> Self
pub fn with_metadata(self, metadata: Map<String, Value>) -> Self
Append custom (application-specific) metadata to the commit.
This might include provenance information such as an id of the user that made the commit or the program that created it.
Trait Implementations§
Source§impl Default for ConvertToDeltaBuilder
impl Default for ConvertToDeltaBuilder
Source§impl IntoFuture for ConvertToDeltaBuilder
impl IntoFuture for ConvertToDeltaBuilder
Source§type Output = Result<DeltaTable, DeltaTableError>
type Output = Result<DeltaTable, DeltaTableError>
Source§type IntoFuture = Pin<Box<dyn Future<Output = <ConvertToDeltaBuilder as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <ConvertToDeltaBuilder as IntoFuture>::Output> + Send>>
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Auto Trait Implementations§
impl Freeze for ConvertToDeltaBuilder
impl !RefUnwindSafe for ConvertToDeltaBuilder
impl Send for ConvertToDeltaBuilder
impl Sync for ConvertToDeltaBuilder
impl Unpin for ConvertToDeltaBuilder
impl !UnwindSafe for ConvertToDeltaBuilder
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> 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 more