Data\RowCursorUtils.cs (37)
36Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col));
37Contracts.CheckParam(row.IsColumnActive(row.Schema[col]), nameof(col), "column was not active");
39return Utils.MarshalInvoke(_getGetterAsDelegateCoreMethodInfo, row.Schema[col].Type.RawType, row, col);
44return row.GetGetter<TValue>(row.Schema[col]);
58Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col));
59Contracts.CheckParam(row.IsColumnActive(row.Schema[col]), nameof(col), "column was not active");
61var typeSrc = row.Schema[col].Type;
79Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col));
80Contracts.CheckParam(row.IsColumnActive(row.Schema[col]), nameof(col), "column was not active");
82var typeSrc = row.Schema[col].Type;
95var getter = row.GetGetter<TSrc>(row.Schema[col]);
124Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col));
125Contracts.CheckParam(row.IsColumnActive(row.Schema[col]), nameof(col), "column was not active");
127var typeSrc = row.Schema[col].Type;
136var getter = row.GetGetter<TSrc>(row.Schema[col]);
157Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col));
158Contracts.CheckParam(row.IsColumnActive(row.Schema[col]), nameof(col), "column was not active");
160var typeSrc = row.Schema[col].Type as VectorDataViewType;
177Contracts.CheckParam(0 <= col && col < row.Schema.Count, nameof(col));
178Contracts.CheckParam(row.IsColumnActive(row.Schema[col]), nameof(col), "column was not active");
180var typeSrc = row.Schema[col].Type as VectorDataViewType;
235return _row.GetGetter<TValue>(_row.Schema[_col]);
307Contracts.Check(0 <= col && col < cursor.Schema.Count);
308DataViewType type = cursor.Schema[col].Type;
315var getter = cursor.GetGetter<T>(cursor.Schema[col]);
354var type = cursor.Schema[labelIndex].Type;
357return cursor.GetGetter<Single>(cursor.Schema[labelIndex]);
361var getSingleSrc = cursor.GetGetter<Double>(cursor.Schema[labelIndex]);
376var type = cursor.Schema[labelIndex].Type;
383var getBoolSrc = cursor.GetGetter<bool>(cursor.Schema[labelIndex]);
455if (!row.Schema.TryGetColumnIndex(name, out int col))
458row.GetGetter<T>(row.Schema[col])(ref val);
477env.CheckParam(Enumerable.Range(0, row.Schema.Count).All(c => row.IsColumnActive(row.Schema[c])), nameof(row), "Some columns were inactive");
512public DataViewSchema Schema => _row.Schema;
520_host.Assert(Enumerable.Range(0, row.Schema.Count).All(c => row.IsColumnActive(row.Schema[c])));