pub trait SplitEnumerator: Sized {
type Split: SplitMetaData + Send;
type Properties;
// Required methods
fn new<'async_trait>(
properties: Self::Properties,
context: SourceEnumeratorContextRef,
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
where Self: 'async_trait;
fn list_splits<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Split>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
SplitEnumerator
fetches the split metadata from the external source service.
NOTE: It runs in the meta server, so probably it should be moved to the meta
crate.
Required Associated Types§
type Split: SplitMetaData + Send
type Properties
Required Methods§
fn new<'async_trait>(
properties: Self::Properties,
context: SourceEnumeratorContextRef,
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
fn list_splits<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Split>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Object Safety§
This trait is not object safe.