MCPcopy Create free account
hub / github.com/apache/datafusion / with_morsel

Method with_morsel

datafusion/datasource/src/morsel/mocks.rs:261–267  ·  view source on GitHub ↗

Add one ready morsel with a single batch.

(mut self, morsel_id: MorselId, batch_id: i32)

Source from the content-addressed store, hash-verified

259
260 /// Add one ready morsel with a single batch.
261 pub(crate) fn with_morsel(mut self, morsel_id: MorselId, batch_id: i32) -> Self {
262 self.morsels.push(MockMorselSpec {
263 morsel_id,
264 batch_ids: vec![batch_id],
265 });
266 self
267 }
268
269 /// Add one ready morsel with multiple batches.
270 pub(crate) fn with_morsel_batches(

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected