public CursorType(TemporaryViewCursorRow <TRowValue> view, Func <int, bool> needCol, IRowCursor otherValues)
 {
     _needCol            = needCol;
     _view               = view;
     _state              = CursorState.NotStarted;
     _otherValues        = otherValues;
     _columnsSchema      = _view._columnsSchema;
     _overwriteRowGetter = _view._overwriteRowGetter;
     _columns            = new Dictionary <int, int>();
     for (int i = 0; i < view.ConstantCol.Length; ++i)
     {
         _columns[view.ConstantCol[i]] = i;
     }
 }
Exemple #2
0
            public CursorType(TemporaryViewCursorRow <TRowValue> view, IEnumerable <DataViewSchema.Column> columnsNeeded, DataViewRowCursor otherValues)
            {
                _columnsNeeded = columnsNeeded;

                _view               = view;
                _state              = CursorState.NotStarted;
                _otherValues        = otherValues;
                _columnsSchema      = _view._columnsSchema;
                _overwriteRowGetter = _view._overwriteRowGetter;
                _columns            = new Dictionary <int, int>();
                for (int i = 0; i < view.ConstantCol.Length; ++i)
                {
                    _columns[view.ConstantCol[i]] = i;
                }
            }