public override ValueGetter <DataViewRowId> GetIdGetter() { return ((ref DataViewRowId val) => { Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); val = new DataViewRowId((ulong)Position, 0); }); }
public override ValueGetter <DataViewRowId> GetIdGetter() { return ((ref DataViewRowId val) => { // Unique row id consists of Position of cursor (how many times MoveNext has been called), and position in file Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); val = new DataViewRowId((ulong)(_readerOptions.Offset + _curDataSetRow), 0); }); }
public override ValueGetter <DataViewRowId> GetIdGetter() { if (_indices == null) { return ((ref DataViewRowId val) => { Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); val = new DataViewRowId((ulong)Position, 0); }); } else { return ((ref DataViewRowId val) => { Ch.Check(IsGood, RowCursorUtils.FetchValueStateError); val = new DataViewRowId((ulong)MappedIndex(), 0); }); } }
private void IdGetter(ref DataViewRowId val) => val = new DataViewRowId((ulong)Position, 0);