private ZipDataView(IHost host, IDataView[] sources) { Contracts.AssertValue(host); _host = host; _host.Assert(Utils.Size(sources) > 1); _sources = sources; _schema = new ZipSchema(_sources.Select(x => x.Schema).ToArray()); }
public Cursor(ZipDataView parent, IRowCursor[] srcCursors, Func <int, bool> predicate) : base(parent._host) { Ch.AssertNonEmpty(srcCursors); Ch.AssertValue(predicate); _cursors = srcCursors; _schema = parent._schema; _isColumnActive = Utils.BuildArray(_schema.ColumnCount, predicate); }