public RowCursor(NAFilter parent, IRowCursor input, bool[] active) : base(parent.Host, input, parent.Schema, active) { _parent = parent; _values = new Value[_parent._infos.Length]; for (int i = 0; i < _parent._infos.Length; i++) { _values[i] = Value.Create(this, _parent._infos[i]); } }
public static CommonOutputs.TransformOutput Filter(IHostEnvironment env, NAFilter.Arguments input) { var h = EntryPointUtils.CheckArgsAndCreateHost(env, NAFilter.ShortName, input); var xf = new NAFilter(h, input, input.Data); return new CommonOutputs.TransformOutput() { Model = new TransformModel(h, xf, input.Data), OutputData = xf }; }