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

Method compose

src/expr/src/linear.rs:104–107  ·  view source on GitHub ↗

Given two mfps, return an mfp that applies one followed by the other. Note that the arguments are in the opposite order from how function composition is usually written in mathematics.

(before: Self, after: Self)

Source from the content-addressed store, hash-verified

102 /// Note that the arguments are in the opposite order
103 /// from how function composition is usually written in mathematics.
104 pub fn compose(before: Self, after: Self) -> Self {
105 let (m, f, p) = after.into_map_filter_project();
106 before.map(m).filter(f).project(p)
107 }
108
109 /// True if the operator describes the identity transformation.
110 pub fn is_identity(&self) -> bool {

Callers

nothing calls this directly

Calls 4

projectMethod · 0.45
filterMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected