IRowToRowMapper ITransformer.GetRowToRowMapper(DataViewSchema inputSchema) { _host.CheckValue(inputSchema, nameof(inputSchema)); var transform = ApplyTransformUtils.ApplyTransformToData(_host, (IDataTransform)_xf, new EmptyDataView(_host, inputSchema)) as IRowToRowMapper; _host.Check(transform is IRowToRowMapper); return(new CompositeRowToRowMapper(inputSchema, new[] { transform })); }
public DataViewSchema GetOutputSchema(DataViewSchema inputSchema) { _host.CheckValue(inputSchema, nameof(inputSchema)); var dv = new EmptyDataView(_host, inputSchema); var output = ApplyTransformUtils.ApplyTransformToData(_host, (IDataTransform)_xf, dv); return(output.Schema); }
public IDataView Transform(IDataView input) => ApplyTransformUtils.ApplyTransformToData(_host, (IDataTransform)_xf, input);