pub enum ExecutablePipeline {
Compiled(Arc<CompiledPipeline>),
Fallback {
pipeline_id: PipelineId,
reason: CompileError,
},
}Expand description
A pipeline that is either compiled to native code or marked for fallback.
Variants§
Compiled(Arc<CompiledPipeline>)
Successfully compiled to native code.
Fallback
Compilation failed; the caller should use DataFusion interpreted execution.
Fields
§
pipeline_id: PipelineIdThe pipeline ID for correlation.
§
reason: CompileErrorThe reason compilation failed.
Implementations§
Source§impl ExecutablePipeline
impl ExecutablePipeline
Sourcepub fn try_compile(cache: &mut CompilerCache, pipeline: &Pipeline) -> Self
pub fn try_compile(cache: &mut CompilerCache, pipeline: &Pipeline) -> Self
Attempts to compile the pipeline, returning a fallback on failure.
Sourcepub fn is_compiled(&self) -> bool
pub fn is_compiled(&self) -> bool
Returns true if the pipeline was successfully compiled.
Sourcepub fn as_compiled(&self) -> Option<&Arc<CompiledPipeline>>
pub fn as_compiled(&self) -> Option<&Arc<CompiledPipeline>>
Returns the compiled pipeline if available.
Sourcepub fn pipeline_id(&self) -> PipelineId
pub fn pipeline_id(&self) -> PipelineId
Returns the pipeline ID.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutablePipeline
impl !RefUnwindSafe for ExecutablePipeline
impl Send for ExecutablePipeline
impl Sync for ExecutablePipeline
impl Unpin for ExecutablePipeline
impl UnsafeUnpin for ExecutablePipeline
impl !UnwindSafe for ExecutablePipeline
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Mutably borrows from an owned value. Read more
§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>
Converts
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>
Converts
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> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.