Beispiel #1
0
            public Cursor(TransposeLoader parent, Func <int, bool> pred)
                : base(parent._host)
            {
                _parent = parent;
                Ch.AssertValue(pred);
                // We should only have instantiated this cursor if we have that
                // col transposers array, and we don't have row data in the file.
                Ch.AssertValue(_parent._colTransposers);
                Ch.AssertValue(_parent._colTransposersLock);
                Ch.Assert(!_parent.HasRowData);

                Utils.BuildSubsetMaps(_parent._header.ColumnCount, pred, out _actives, out _colToActivesIndex);
                _transCursors = new ICursor[_actives.Length];
                _getters      = new Delegate[_actives.Length];
                // The following will fill in both the _transCursors and _getters arrays.
                for (int i = 0; i < _actives.Length; ++i)
                {
                    Init(_actives[i]);
                }
            }
 public SchemaImpl(TransposeLoader parent)
 {
     Contracts.AssertValue(parent);
     _parent = parent;
     var view = parent._schemaEntry.GetView().Schema;
 }
 /// <summary>
 /// Returns an empty sub-IDV entry for the no-file case.
 /// </summary>
 public TransposedSubIdv(TransposeLoader parent, int col)
     : base(parent)
 {
     _col = col;
 }
 public SchemaSubIdv(TransposeLoader parent, IDataView view)
     : base(parent)
 {
     _view = view;
 }
 /// <summary>
 /// Constructs an empty table of contents entry, with no offset.
 /// </summary>
 private SubIdvEntry(TransposeLoader parent)
 {
     Contracts.AssertValue(parent);
     _parent = parent;
 }