True if the operator describes the identity transformation.
(&self)
| 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 |
no test coverage detected