Struct fluvio_smartmodule::dataplane::record::RecordSet
source · pub struct RecordSet<R = Vec<Record<RecordData>, Global>> {
pub batches: Vec<Batch<R>, Global>,
}Expand description
Represents sets of batches in storage
Fields§
§batches: Vec<Batch<R>, Global>Implementations§
source§impl<R> RecordSet<R>where
R: BatchRecords,
impl<R> RecordSet<R>where R: BatchRecords,
pub fn add(self, batch: Batch<R>) -> RecordSet<R>
sourcepub fn last_offset(&self) -> Option<i64>
pub fn last_offset(&self) -> Option<i64>
this is next offset to be fetched
sourcepub fn total_records(&self) -> usize
pub fn total_records(&self) -> usize
total records
sourcepub fn base_offset(&self) -> i64
pub fn base_offset(&self) -> i64
return base offset