示例#1
0
        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());
        }
示例#2
0
            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);
            }