IRowToRowMapper.GetRow Method

Definition

Get an DataViewRow with the indicated active columns, based on the input input. Getting values on inactive columns of the returned row will throw.

The Schema of input should be the same object as InputSchema. Implementors of this method should throw if that is not the case. Conversely, the returned value must have the same schema as OutputSchema.

This method creates a live connection between the input DataViewRow and the output DataViewRow. In particular, when the getters of the output DataViewRow are invoked, they invoke the getters of the input row and base the output values on the current values of the input DataViewRow. The output DataViewRow values are re-computed when requested through the getters. Also, the returned DataViewRow will dispose input when it is disposed.

public Microsoft.ML.DataViewRow GetRow (Microsoft.ML.DataViewRow input, System.Collections.Generic.IEnumerable<Microsoft.ML.DataViewSchema.Column> activeColumns);
abstract member GetRow : Microsoft.ML.DataViewRow * seq<Microsoft.ML.DataViewSchema.Column> -> Microsoft.ML.DataViewRow
Public Function GetRow (input As DataViewRow, activeColumns As IEnumerable(Of DataViewSchema.Column)) As DataViewRow

Parameters

input
DataViewRow

Returns

Applies to