pub struct FetchablePartitionResponse<R> {
pub partition_index: PartitionId,
pub error_code: ErrorCode,
pub high_watermark: i64,
pub next_filter_offset: i64,
pub log_start_offset: i64,
pub aborted: Option<Vec<AbortedTransaction>>,
pub records: R,
}
Fields§
§partition_index: PartitionId
The partition index.
error_code: ErrorCode
The error code, or 0 if there was no fetch error
high_watermark: i64
The current high water mark.
next_filter_offset: i64
next offset to fetch in case of filter consumer should return that back to SPU, otherwise SPU will re-turn same filter records
log_start_offset: i64
The current log start offset.
aborted: Option<Vec<AbortedTransaction>>
The aborted transactions.
records: R
The record data.
Implementations§
source§impl<R: BatchRecords> FetchablePartitionResponse<RecordSet<R>>
impl<R: BatchRecords> FetchablePartitionResponse<RecordSet<R>>
sourcepub fn next_offset_for_fetch(&self) -> Option<Offset>
pub fn next_offset_for_fetch(&self) -> Option<Offset>
offset that will be use for fetching rest of offsets this will be 1 greater than last offset of previous query If all records have been read then it will be either HW or LEO
Trait Implementations§
source§impl<R: Debug> Debug for FetchablePartitionResponse<R>
impl<R: Debug> Debug for FetchablePartitionResponse<R>
source§impl<R: Decoder> Decoder for FetchablePartitionResponse<R>
impl<R: Decoder> Decoder for FetchablePartitionResponse<R>
source§impl<R: Default> Default for FetchablePartitionResponse<R>
impl<R: Default> Default for FetchablePartitionResponse<R>
source§impl<R: Encoder> Encoder for FetchablePartitionResponse<R>
impl<R: Encoder> Encoder for FetchablePartitionResponse<R>
Auto Trait Implementations§
impl<R> !Freeze for FetchablePartitionResponse<R>
impl<R> RefUnwindSafe for FetchablePartitionResponse<R>where
R: RefUnwindSafe,
impl<R> Send for FetchablePartitionResponse<R>where
R: Send,
impl<R> Sync for FetchablePartitionResponse<R>where
R: Sync,
impl<R> Unpin for FetchablePartitionResponse<R>where
R: Unpin,
impl<R> UnwindSafe for FetchablePartitionResponse<R>where
R: UnwindSafe,
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