MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / take

Method take

src/expr/src/linear.rs:633–637  ·  view source on GitHub ↗

Returns `self`, and leaves behind an identity operator that acts on its output.

(&mut self)

Source from the content-addressed store, hash-verified

631
632 /// Returns `self`, and leaves behind an identity operator that acts on its output.
633 pub fn take(&mut self) -> Self {
634 let mut identity = Self::new(self.projection.len());
635 std::mem::swap(self, &mut identity);
636 identity
637 }
638
639 /// Convert the `MapFilterProject` into a staged evaluation plan.
640 ///

Callers 15

generate_bytesFunction · 0.45
runFunction · 0.45
executeMethod · 0.45
send_rowsMethod · 0.45
copy_rowsMethod · 0.45
pad_formatsFunction · 0.45
refine_source_mfpsMethod · 0.45
create_fromMethod · 0.45
typMethod · 0.45
arityMethod · 0.45
expand_countsFunction · 0.45

Calls 1

lenMethod · 0.45

Tested by 5

test_get_users_v3Function · 0.36
into_futureMethod · 0.36
test_max_request_sizeFunction · 0.36