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

Method take

datafusion/physical-plan/src/work_table.rs:75–81  ·  view source on GitHub ↗

Take the previously written batches from the work table. This will be called by the [`WorkTableExec`] when it is executed.

(&self)

Source from the content-addressed store, hash-verified

73 /// Take the previously written batches from the work table.
74 /// This will be called by the [`WorkTableExec`] when it is executed.
75 fn take(&self) -> Result<ReservedBatches> {
76 self.batches
77 .lock()
78 .unwrap()
79 .take()
80 .ok_or_else(|| internal_datafusion_err!("Unexpected empty work table"))
81 }
82
83 /// Update the results of a recursive query iteration to the work table.
84 pub(super) fn update(&self, batches: ReservedBatches) {

Callers 15

poll_next_iterationMethod · 0.45
render_box_contentMethod · 0.45
split_up_extra_infoMethod · 0.45
next_sliced_batchMethod · 0.45
executeMethod · 0.45
test_work_tableFunction · 0.45
output_exprsMethod · 0.45
internMethod · 0.45
emitMethod · 0.45
clear_shrinkMethod · 0.45
emitMethod · 0.45

Calls

no outgoing calls

Tested by 3

test_work_tableFunction · 0.36