Click or drag to resize

MapperKernelMoveTo Method

Overload List
  NameDescription
Public methodCode exampleMoveTo(Int32)
Move to the specified row number (1-based). Note that RowCurrent events are NOT fired and data is NOT moved through the mapper's Fields during the move. In general you should use this method to position the mapper to the record immeditately PRIOR to the first record of interest and then use MoveNext to iterate through one or more records of interest.
Remarks
Note that this will throw an InvalidMapperMovement exception if the mapper is positioned beyond the specified record and is not BiDirectional.
Examples
For example, to implement a page size of 10 records and read data for the 2nd page, you would first call mapper.MoveTo(10); to position to the 10th row (the last row of page 1) then iteratively call mapper.MoveNext(); until you have read 10 records (11 through 20) or until mapper.MoveNext();MoveNext() returns false indicating that there are no more records.
Public methodMoveTo(String)
Move to the row corresponding to the specified RowKey.
Top
See Also