Find the sorted, dedupped set of inputs an expression references
(&self, expr: &C)
| 227 | |
| 228 | /// Find the sorted, dedupped set of inputs an expression references |
| 229 | pub fn lookup_inputs<C: Columns>(&self, expr: &C) -> impl Iterator<Item = usize> + use<C> { |
| 230 | expr.support() |
| 231 | .iter() |
| 232 | .map(|c| self.input_relation[*c]) |
| 233 | .sorted() |
| 234 | .dedup() |
| 235 | } |
| 236 | |
| 237 | /// Returns the index of the only input referenced in the given expression. |
| 238 | pub fn single_input(&self, expr: &impl Columns) -> Option<usize> { |
no test coverage detected