コード例 #1
0
 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]);
     }
 }
コード例 #2
0
 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
     };
 }