pub struct TableBatch<M> {
pub stream_name: StreamName,
pub table_descriptor: Arc<TableDescriptor>,
pub rows: Vec<M>,
}
Expand description
Collection of rows targeting a specific BigQuery table for batch processing.
Encapsulates rows with their destination stream and schema metadata, enabling efficient batch operations and optimal parallelism distribution across multiple tables in concurrent append operations.
Fields§
§stream_name: StreamName
Target stream identifier for the append operations.
table_descriptor: Arc<TableDescriptor>
Schema descriptor for the target table.
rows: Vec<M>
Collection of rows to be appended to the table.
Implementations§
Source§impl<M> TableBatch<M>
impl<M> TableBatch<M>
Sourcepub fn new(
stream_name: StreamName,
table_descriptor: Arc<TableDescriptor>,
rows: Vec<M>,
) -> Self
pub fn new( stream_name: StreamName, table_descriptor: Arc<TableDescriptor>, rows: Vec<M>, ) -> Self
Creates a new table batch targeting the specified stream.
Combines rows with their destination metadata to form a complete batch ready for processing by append operations.
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for TableBatch<M>
impl<M> RefUnwindSafe for TableBatch<M>where
M: RefUnwindSafe,
impl<M> Send for TableBatch<M>where
M: Send,
impl<M> Sync for TableBatch<M>where
M: Sync,
impl<M> Unpin for TableBatch<M>where
M: Unpin,
impl<M> UnwindSafe for TableBatch<M>where
M: 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
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> 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