pub struct SourceDataBlocksInMemory {
pub blocks: Vec<Arc<PartitionSourceBlock>>,
pub block_ids_hash: Vec<u8>,
}Expand description
A PartitionBlocksSource implementation that stores blocks in memory.
Fields§
§blocks: Vec<Arc<PartitionSourceBlock>>§block_ids_hash: Vec<u8>Trait Implementations§
Source§impl Debug for SourceDataBlocksInMemory
impl Debug for SourceDataBlocksInMemory
Source§impl PartitionBlocksSource for SourceDataBlocksInMemory
impl PartitionBlocksSource for SourceDataBlocksInMemory
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.
Auto Trait Implementations§
impl Freeze for SourceDataBlocksInMemory
impl RefUnwindSafe for SourceDataBlocksInMemory
impl Send for SourceDataBlocksInMemory
impl Sync for SourceDataBlocksInMemory
impl Unpin for SourceDataBlocksInMemory
impl UnsafeUnpin for SourceDataBlocksInMemory
impl UnwindSafe for SourceDataBlocksInMemory
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 moreSource§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