fn find_column_within_box(&self, box_id: BoxId, mut position: usize) -> ColumnReference {
        let b = self.model.get_box(box_id);
        for q_id in b.quantifiers.iter() {
            let q = self.model.get_quantifier(*q_id);
            let ib = self.model.get_box(q.input_box);
            if position < ib.columns.len() {
                return ColumnReference {
                    quantifier_id: *q_id,
                    position,
                };
            }
            position -= ib.columns.len();
        }
        unreachable!("column not found")
    }
/// Find the N-th column among the columns projected by the input quantifiers
/// of the given box. This method translates Hir's offset-based column into
/// quantifier-based column references.
///
/// This method is equivalent to `expr::JoinInputMapper::map_column_to_local`, in
/// the sense that given all the columns projected by a join (represented by the
/// set of input quantifiers of the given box) it returns the input the column
/// belongs to and its offset within the projection of the underlying operator.
Find the N-th column among the columns projected by the input quantifiers
of the given box. This method translates Hir's offset-based column into
quantifier-based column references.

This method is equivalent to `expr::JoinInputMapper::map_column_to_local`, in
the sense that given all the columns projected by a join (represented by the
set of input quantifiers of the given box) it returns the input the column
belongs to and its offset within the projection of the underlying operator.
Find the N - th column among the columns projected by the input quantifiers of the given box . This method translates Hir ' s offset - based column into quantifier - based column references . This method is equivalent to ` expr :: JoinInputMapper :: map_column_to_local ` in the sense that given all the columns projected by a join ( represented by the set of input quantifiers of the given box ) it returns the input the column belongs to and its offset within the projection of the underlying operator .
fn find_column_within_box(&self, box_id: BoxId, mut position: usize) -> ColumnReference {
        let b = self.model.get_box(box_id);
        for q_id in b.quantifiers.iter() {
            let q = self.model.get_quantifier(*q_id);
            let ib = self.model.get_box(q.input_box);
            if position < ib.columns.len() {
                return ColumnReference {
                    quantifier_id: *q_id,
                    position,
                };
            }
            position -= ib.columns.len();
        }
        unreachable!("column not found")
    }
fn find_column_within_box ( & self , box_id : BoxId , mut position : usize ) -> ColumnReference { let b = self . model . get_box ( box_id ) ; for q_id in b . quantifiers . iter ( ) { let q = self . model . get_quantifier ( * q_id ) ; let ib = self . model . get_box ( q . input_box ) ; if position < ib . columns . len ( ) { return ColumnReference { quantifier_id : * q_id , position , } ; } position -= ib . columns . len ( ) ; } unreachable ! ( " " ) }
Find the N-th column among the columns projected by the input quantifiers
of the given box.
Find the N - th column among the columns projected by the input quantifiers of the given box .
&self
box_id
BoxId
position
usize
&self
box_id
BoxId
position
usize