pub struct ReceivedBatch { /* private fields */ }Expand description
A decoded shuffle batch together with the memory admission charged for its source IPC payload.
The admission remains charged while this value lives, so consumers must retain the envelope while processing shallow clones of the batch.
Implementations§
Source§impl ReceivedBatch
impl ReceivedBatch
Sourcepub const fn batch(&self) -> &RecordBatch
pub const fn batch(&self) -> &RecordBatch
Borrow the decoded batch without releasing its inbound admission.
Sourcepub const fn peer(&self) -> ShufflePeerId
pub const fn peer(&self) -> ShufflePeerId
Peer and exact transport stream that delivered this batch.
Sourcepub const fn sender_incarnation(&self) -> Uuid
pub const fn sender_incarnation(&self) -> Uuid
Sender process incarnation bound by the stream handshake.
Sourcepub const fn receiver_incarnation(&self) -> Uuid
pub const fn receiver_incarnation(&self) -> Uuid
Receiver process incarnation bound by the stream handshake.
Sourcepub const fn assignment_version(&self) -> u64
pub const fn assignment_version(&self) -> u64
Assignment version bound by the stream handshake.
Sourcepub const fn recovery_gen(&self) -> u64
pub const fn recovery_gen(&self) -> u64
Recovery generation bound by the stream handshake.
Sourcepub const fn checkpoint_sequence(&self) -> u64
pub const fn checkpoint_sequence(&self) -> u64
Zero-based logical-frame sequence for this data batch.
Sourcepub fn into_parts(self) -> (RecordBatch, ShuffleBatchAdmission)
pub fn into_parts(self) -> (RecordBatch, ShuffleBatchAdmission)
Split the decoded batch from its admission so a retaining consumer can keep the charge for exactly as long as shallow Arrow views remain live.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ReceivedBatch
impl !UnwindSafe for ReceivedBatch
impl Freeze for ReceivedBatch
impl Send for ReceivedBatch
impl Sync for ReceivedBatch
impl Unpin for ReceivedBatch
impl UnsafeUnpin for ReceivedBatch
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
§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>
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>
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>
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>,
Layered].