Struct jupiter::idb::idb_csv_loader::IdbCsvLoader
source · pub struct IdbCsvLoader { /* private fields */ }
Expand description
Represents the global loader instance.
Implementations§
Trait Implementations§
source§impl Display for IdbCsvLoader
impl Display for IdbCsvLoader
source§impl Loader for IdbCsvLoader
impl Loader for IdbCsvLoader
source§fn file_changed<'life0, 'life1, 'async_trait>(
&'life0 self,
loader_info: &'life1 LoaderInfo
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn file_changed<'life0, 'life1, 'async_trait>(
&'life0 self,
loader_info: &'life1 LoaderInfo
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Invoked if either the loader metadata or the file itself has changed.
source§fn platform(&self) -> &Arc<Platform>
fn platform(&self) -> &Arc<Platform>
Provides the platform for which this loader was registered.
source§fn update_table<'life0, 'life1, 'async_trait>(
&'life0 self,
doc: Doc,
loader_info: &'life1 LoaderInfo
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_table<'life0, 'life1, 'async_trait>(
&'life0 self,
doc: Doc,
loader_info: &'life1 LoaderInfo
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Can be invoked by loaders which store data in InfoGraphDB to update a table
with the indices as defined by the metadata YAML.
source§fn table_name<'a>(&self, loader_info: &'a LoaderInfo) -> Result<&'a str>
fn table_name<'a>(&self, loader_info: &'a LoaderInfo) -> Result<&'a str>
Extracts the table name from the given metadata. Read more
source§fn indices(&self, loader_info: &LoaderInfo) -> Vec<IndexType>
fn indices(&self, loader_info: &LoaderInfo) -> Vec<IndexType>
Extracts the desired indices from the given metadata. Read more
source§fn file_deleted<'life0, 'life1, 'async_trait>(
&'life0 self,
loader_info: &'life1 LoaderInfo
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn file_deleted<'life0, 'life1, 'async_trait>(
&'life0 self,
loader_info: &'life1 LoaderInfo
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Invoked if the underlying file or the loader itself was deleted. Read more
Auto Trait Implementations§
impl Freeze for IdbCsvLoader
impl RefUnwindSafe for IdbCsvLoader
impl Send for IdbCsvLoader
impl Sync for IdbCsvLoader
impl Unpin for IdbCsvLoader
impl UnwindSafe for IdbCsvLoader
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> 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>
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