pub struct SourceDataBlocks {
pub blocks_dataframe: DataFrame,
pub object_count: i64,
pub block_count: i64,
pub max_payload: i64,
}Expand description
A PartitionBlocksSource implementation that fetches blocks from a DataFusion DataFrame.
Fields§
§blocks_dataframe: DataFrame§object_count: i64§block_count: i64§max_payload: i64Trait Implementations§
Source§impl Debug for SourceDataBlocks
impl Debug for SourceDataBlocks
Source§impl PartitionBlocksSource for SourceDataBlocks
impl PartitionBlocksSource for SourceDataBlocks
Source§fn get_nb_blocks(&self) -> i64
fn get_nb_blocks(&self) -> i64
Returns the number of blocks in the source.
Source§fn get_max_payload_size(&self) -> i64
fn get_max_payload_size(&self) -> i64
Returns the maximum payload size of the blocks in the source.
Source§fn get_blocks_stream<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Pin<Box<dyn Stream<Item = Result<Arc<PartitionSourceBlock>, Error>> + Send>>> + Send + 'async_trait>>where
'life0: 'async_trait,
SourceDataBlocks: 'async_trait,
fn get_blocks_stream<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Pin<Box<dyn Stream<Item = Result<Arc<PartitionSourceBlock>, Error>> + Send>>> + Send + 'async_trait>>where
'life0: 'async_trait,
SourceDataBlocks: 'async_trait,
Returns a stream of the source blocks.
Auto Trait Implementations§
impl Freeze for SourceDataBlocks
impl !RefUnwindSafe for SourceDataBlocks
impl Send for SourceDataBlocks
impl Sync for SourceDataBlocks
impl Unpin for SourceDataBlocks
impl !UnwindSafe for SourceDataBlocks
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
§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].