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

Method is_identity

src/expr/src/linear.rs:110–115  ·  view source on GitHub ↗

True if the operator describes the identity transformation.

(&self)

Source from the content-addressed store, hash-verified

108
109 /// True if the operator describes the identity transformation.
110 pub fn is_identity(&self) -> bool {
111 self.expressions.is_empty()
112 && self.predicates.is_empty()
113 && self.projection.len() == self.input_arity
114 && self.projection.iter().enumerate().all(|(i, p)| i == *p)
115 }
116
117 /// Retain only the indicated columns in the presented order.
118 pub fn project<I>(mut self, columns: I) -> Self

Callers 3

fmt_textMethod · 0.45
rebuild_mfpMethod · 0.45
install_lifted_mfpFunction · 0.45

Calls 5

allMethod · 0.80
enumerateMethod · 0.80
is_emptyMethod · 0.45
lenMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected