Struct specifications::data::RuntimeDataIndex
source · pub struct RuntimeDataIndex { /* private fields */ }
Expand description
Defines a structure similar to the data index, except that it is used at runtime when locations have been resolved.
Implementations§
source§impl RuntimeDataIndex
impl RuntimeDataIndex
sourcepub fn new() -> Self
pub fn new() -> Self
Constructor for the RuntimeDataIndex that initializes it to empty. It is up to the planner to populate it.
§Returns
A new RuntimeDataIndex instance.
sourcepub fn add_local(
&mut self,
name: impl Into<String>,
access: AccessKind,
) -> Result<(), RuntimeDataIndexError>
pub fn add_local( &mut self, name: impl Into<String>, access: AccessKind, ) -> Result<(), RuntimeDataIndexError>
sourcepub fn add_remote(
&mut self,
name: impl Into<String>,
transfer: PreprocessKind,
) -> Result<(), RuntimeDataIndexError>
pub fn add_remote( &mut self, name: impl Into<String>, transfer: PreprocessKind, ) -> Result<(), RuntimeDataIndexError>
sourcepub fn remote(&self, name: impl AsRef<str>) -> Option<&PreprocessKind>
pub fn remote(&self, name: impl AsRef<str>) -> Option<&PreprocessKind>
Returns the method of transferring the given dataset to the local machine if it is remotely available.
§Arguments
name
: The name/identifier of the dataset to query for.
§Returns
A reference to this dataset’s TransferKind that describes how to transfer it. If, however, the dataset isn’t remotely available, it returns None
.
Trait Implementations§
source§impl Clone for RuntimeDataIndex
impl Clone for RuntimeDataIndex
source§fn clone(&self) -> RuntimeDataIndex
fn clone(&self) -> RuntimeDataIndex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RuntimeDataIndex
impl Debug for RuntimeDataIndex
Auto Trait Implementations§
impl Freeze for RuntimeDataIndex
impl RefUnwindSafe for RuntimeDataIndex
impl Send for RuntimeDataIndex
impl Sync for RuntimeDataIndex
impl Unpin for RuntimeDataIndex
impl UnwindSafe for RuntimeDataIndex
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request