Exemplo n.º 1
0
            protected override DataViewRowCursor GetRowCursorCore(IEnumerable <DataViewSchema.Column> columnsNeeded, Random rand = null)
            {
                var srcCursor = _transform.GetRowCursor(columnsNeeded, rand);
                var clone     = (SequentialDataTransform)MemberwiseClone();

                clone.CloneStateInMapper();
                return(new Cursor(Host, clone, srcCursor));
            }
Exemplo n.º 2
0
            protected override IRowCursor GetRowCursorCore(Func <int, bool> predicate, Random rand = null)
            {
                var srcCursor = _transform.GetRowCursor(predicate, rand);
                var clone     = (SequentialDataTransform)MemberwiseClone();

                clone.CloneStateInMapper();
                return(new Cursor(Host, clone, srcCursor));
            }
Exemplo n.º 3
0
 protected override DataViewRowCursor GetRowCursorCore(IEnumerable <DataViewSchema.Column> columnsNeeded, Random rand = null)
 {
     if (_transform == null)
     {
         lock (_lock)
             if (_transform == null)
             {
                 _transform = CreateTemplatedTransform();
             }
     }
     Host.AssertValue(_transform, "_transform");
     Host.AssertValue(_trend, "_trend");
     return(_transform.GetRowCursor(columnsNeeded, rand));
 }
Exemplo n.º 4
0
 protected override RowCursor GetRowCursorCore(Func <int, bool> needCol, Random rand = null)
 {
     if (_transform == null)
     {
         lock (_lock)
             if (_transform == null)
             {
                 _transform = CreateTemplatedTransform();
             }
     }
     Host.AssertValue(_transform, "_transform");
     Host.AssertValue(_trend, "_trend");
     return(_transform.GetRowCursor(needCol, rand));
 }
Exemplo n.º 5
0
 public RowCursor GetRowCursor(Func <int, bool> predicate, Random rand = null)
 {
     // Fun part we'll see later.
     _host.AssertValue(_transform, "_transform");
     return(_transform.GetRowCursor(predicate, rand));
 }
Exemplo n.º 6
0
 protected override IRowCursor GetRowCursorCore(Func <int, bool> predicate, IRandom rand = null)
 {
     Host.AssertValue(_pipedTransform, "_pipedTransform");
     return(_pipedTransform.GetRowCursor(predicate, rand));
 }
 protected override DataViewRowCursor GetRowCursorCore(IEnumerable <DataViewSchema.Column> columnsNeeded, Random rand = null)
 {
     Host.AssertValue(_pipedTransform, "_pipedTransform");
     return(_pipedTransform.GetRowCursor(columnsNeeded, rand));
 }
            protected override IRowCursor GetRowCursorCore(Func <int, bool> predicate, IRandom rand = null)
            {
                var srcCursor = _transform.GetRowCursor(predicate, rand);

                return(new Cursor(Host, this, srcCursor));
            }
 public DataViewRowCursor GetRowCursor(IEnumerable <DataViewSchema.Column> columnsNeeded, Random rand = null)
 {
     // Fun part we'll see later.
     _host.AssertValue(_transform, "_transform");
     return(_transform.GetRowCursor(columnsNeeded, rand));
 }