Exemplo n.º 1
0
        public Schema GetOutputSchema(Schema inputSchema)
        {
            Host.CheckValue(inputSchema, nameof(inputSchema));
            var mapper = MakeRowMapper(inputSchema);

            return(RowToRowMapperTransform.GetOutputSchema(inputSchema, mapper));
        }
Exemplo n.º 2
0
 public Bindings(ISchema inputSchema, RowToRowMapperTransform parent)
     : base(inputSchema, true, Contracts.CheckRef(parent, nameof(parent))._mapper.GetOutputColumns().Select(info => info.Name).ToArray())
 {
     Contracts.AssertValue(parent);
     _parent        = parent;
     OutputColInfos = _parent._mapper.GetOutputColumns().ToArray();
 }
            public RowCursor(IChannelProvider provider, IRowCursor input, RowToRowMapperTransform parent, bool[] active)
                : base(provider, input)
            {
                var pred = parent._bindings.GetActiveOutputColumns(active);

                _getters  = parent._mapper.CreateGetters(input, pred, out _disposer);
                _active   = active;
                _bindings = parent._bindings;
            }