IDataView.GetRowCursor(IEnumerable<DataViewSchema.Column>, Random) Method

Definition

Get a row cursor. The columnsNeeded indicate the active columns that are needed to iterate over. If set to an empty IEnumerable no column is requested. The schema of the returned cursor will be the same as the schema of the IDataView, but getting a getter for inactive columns will throw.

public Microsoft.ML.DataViewRowCursor GetRowCursor (System.Collections.Generic.IEnumerable<Microsoft.ML.DataViewSchema.Column> columnsNeeded, Random rand = default);
abstract member GetRowCursor : seq<Microsoft.ML.DataViewSchema.Column> * Random -> Microsoft.ML.DataViewRowCursor
Public Function GetRowCursor (columnsNeeded As IEnumerable(Of DataViewSchema.Column), Optional rand As Random = Nothing) As DataViewRowCursor

Parameters

columnsNeeded
IEnumerable<DataViewSchema.Column>

The active columns needed. If passed an empty IEnumerable no column is requested.

rand
Random

An instance of Random to seed randomizing the access for a shuffled cursor.

Returns

DataViewRowCursor

Applies to