pub struct DefaultEngine<E: TaskExecutor> { /* private fields */ }Implementations§
Source§impl DefaultEngine<TokioBackgroundExecutor>
impl DefaultEngine<TokioBackgroundExecutor>
Sourcepub fn builder(
object_store: Arc<DynObjectStore>,
) -> DefaultEngineBuilder<DefaultTaskExecutor>
pub fn builder( object_store: Arc<DynObjectStore>, ) -> DefaultEngineBuilder<DefaultTaskExecutor>
Create a DefaultEngineBuilder for constructing a DefaultEngine with custom options.
§Parameters
object_store: The object store to use.
Source§impl<E: TaskExecutor> DefaultEngine<E>
impl<E: TaskExecutor> DefaultEngine<E>
Sourcepub fn enter(&self) -> <E as TaskExecutor>::Guard<'_>
pub fn enter(&self) -> <E as TaskExecutor>::Guard<'_>
Enter the runtime context of the executor associated with this engine.
§Panics
When calling enter multiple times, the returned guards must be dropped in the reverse
order that they were acquired. Failure to do so will result in a panic and possible memory
leaks.
pub fn get_object_store_for_url( &self, _url: &Url, ) -> Option<Arc<DynObjectStore>>
Sourcepub fn default_parquet_handler(&self) -> Arc<DefaultParquetHandler<E>> ⓘ
pub fn default_parquet_handler(&self) -> Arc<DefaultParquetHandler<E>> ⓘ
Returns the concrete DefaultParquetHandler for callers that need the inherent
async write_parquet_file helper not exposed by the ParquetHandler trait.
For the metered trait surface used by reads, use Self::parquet_handler.
TODO(#2701): lift the inherent helper onto DefaultEngine so this accessor
(and the raw_parquet field) can be removed.
Sourcepub async fn write_parquet(
&self,
data: &ArrowEngineData,
write_context: &WriteContext,
) -> DeltaResult<Box<dyn EngineData>>
pub async fn write_parquet( &self, data: &ArrowEngineData, write_context: &WriteContext, ) -> DeltaResult<Box<dyn EngineData>>
Write data as a parquet file using the provided write_context.
data must not contain partition columns. If the table materializes partition columns (e.g.
materializePartitionColumns or icebergCompatV3), this function automatically inserts
them into the data.
The write_context must be created by Transaction::partitioned_write_context or
Transaction::unpartitioned_write_context, which handle partition value validation,
serialization, and logical-to-physical key translation.
Trait Implementations§
Source§impl<E: Debug + TaskExecutor> Debug for DefaultEngine<E>
impl<E: Debug + TaskExecutor> Debug for DefaultEngine<E>
Source§impl<E: TaskExecutor> Engine for DefaultEngine<E>
impl<E: TaskExecutor> Engine for DefaultEngine<E>
Source§fn evaluation_handler(&self) -> Arc<dyn EvaluationHandler> ⓘ
fn evaluation_handler(&self) -> Arc<dyn EvaluationHandler> ⓘ
EvaluationHandler.Source§fn storage_handler(&self) -> Arc<dyn StorageHandler> ⓘ
fn storage_handler(&self) -> Arc<dyn StorageHandler> ⓘ
StorageHandlerSource§fn json_handler(&self) -> Arc<dyn JsonHandler> ⓘ
fn json_handler(&self) -> Arc<dyn JsonHandler> ⓘ
JsonHandler.Source§fn parquet_handler(&self) -> Arc<dyn ParquetHandler> ⓘ
fn parquet_handler(&self) -> Arc<dyn ParquetHandler> ⓘ
ParquetHandler.Auto Trait Implementations§
impl<E> !RefUnwindSafe for DefaultEngine<E>
impl<E> !UnwindSafe for DefaultEngine<E>
impl<E> Freeze for DefaultEngine<E>
impl<E> Send for DefaultEngine<E>
impl<E> Sync for DefaultEngine<E>
impl<E> Unpin for DefaultEngine<E>
impl<E> UnsafeUnpin for DefaultEngine<E>
Blanket Implementations§
Source§impl<T> AsAny for T
impl<T> AsAny for T
Source§fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
dyn Any reference to the object: Read moreSource§fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
Arc<dyn Any> reference to the object: Read moreSource§fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
Box<dyn Any>: Read moreSource§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
std::any::type_name, since Any does not provide it and
Any::type_id is useless as a debugging aid (its Debug is just a mess of hex digits).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> FoldWithOption for T
impl<T> FoldWithOption for 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