MCPcopy Create free account
hub / github.com/apache/datafusion / assign_intervals

Method assign_intervals

datafusion/physical-expr/src/intervals/cp_solver.rs:538–543  ·  view source on GitHub ↗

This function assigns given ranges to expressions in the DAEG. The argument `assignments` associates indices of sought expressions with their corresponding new ranges.

(&mut self, assignments: &[(usize, Interval)])

Source from the content-addressed store, hash-verified

536 /// The argument `assignments` associates indices of sought expressions
537 /// with their corresponding new ranges.
538 pub fn assign_intervals(&mut self, assignments: &[(usize, Interval)]) {
539 for (index, interval) in assignments {
540 let node_index = NodeIndex::from(*index as DefaultIx);
541 self.graph[node_index].interval = interval.clone();
542 }
543 }
544
545 /// This function fetches ranges of expressions from the DAEG. The argument
546 /// `assignments` associates indices of sought expressions with their ranges,

Callers 1

update_rangesMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected