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

Method project

src/expr/src/linear.rs:118–124  ·  view source on GitHub ↗

Retain only the indicated columns in the presented order.

(mut self, columns: I)

Source from the content-addressed store, hash-verified

116
117 /// Retain only the indicated columns in the presented order.
118 pub fn project<I>(mut self, columns: I) -> Self
119 where
120 I: IntoIterator<Item = usize> + std::fmt::Debug,
121 {
122 self.projection = columns.into_iter().map(|c| self.projection[c]).collect();
123 self
124 }
125
126 /// Retain only rows satisfying these predicates.
127 ///

Callers 15

extract_mfp_afterMethod · 0.45
newMethod · 0.45
buildMethod · 0.45
composeMethod · 0.45
extract_temporalMethod · 0.45
extract_commonMethod · 0.45
partitionMethod · 0.45

Calls 3

collectMethod · 0.45
mapMethod · 0.45
into_iterMethod · 0.45

Tested by 2

test_mfpFunction · 0.36