Example #1
0
 public Cursor(NAFilter parent, RowCursor input, bool[] active)
     : base(parent.Host, input, parent.OutputSchema, 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]);
     }
 }
Example #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 TransformModelImpl(h, xf, input.Data),
                OutputData = xf
            });
        }