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

Method lookup_inputs

src/expr/src/relation/join_input_mapper.rs:229–235  ·  view source on GitHub ↗

Find the sorted, dedupped set of inputs an expression references

(&self, expr: &C)

Source from the content-addressed store, hash-verified

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> {

Callers 10

global_keysMethod · 0.80
single_inputMethod · 0.80
find_bound_exprMethod · 0.80
newMethod · 0.80
actionMethod · 0.80
newMethod · 0.80
order_inputMethod · 0.80

Calls 3

mapMethod · 0.45
iterMethod · 0.45
supportMethod · 0.45

Tested by

no test coverage detected