assertEquals(0, fetchResult.rowResult.startRecord);
assertEquals(1, fetchResult.rowResult.maxRecordsToFetch);
Row row1 = newRow("row-6",
newRecord(FAMILY, "record-6A", newColumn("testcol12", "value110"), newColumn("testcol13", "value102")));
FetchRowResult rowResult = fetchResult.getRowResult();
assertEquals(row1, rowResult.getRow());
assertEquals(3, rowResult.getTotalRecords());
selector = new Selector().setRowId("row-6").setStartRecord(1).setMaxRecordsToFetch(1);
fetchResult = new FetchResult();
indexManager.fetchRow(TABLE, selector, fetchResult);
assertNotNull(fetchResult.rowResult.row);
assertTrue(fetchResult.rowResult.moreRecordsToFetch);
assertEquals(1, fetchResult.rowResult.startRecord);
assertEquals(1, fetchResult.rowResult.maxRecordsToFetch);
Row row2 = newRow("row-6",
newRecord(FAMILY, "record-6B", newColumn("testcol12", "value101"), newColumn("testcol13", "value104")));
FetchRowResult rowResult2 = fetchResult.getRowResult();
assertEquals(row2, rowResult2.getRow());
assertEquals(3, rowResult2.getTotalRecords());
selector = new Selector().setRowId("row-6").setStartRecord(2).setMaxRecordsToFetch(1);
fetchResult = new FetchResult();
indexManager.fetchRow(TABLE, selector, fetchResult);
assertNotNull(fetchResult.rowResult.row);
assertFalse(fetchResult.rowResult.moreRecordsToFetch);
assertEquals(2, fetchResult.rowResult.startRecord);
assertEquals(1, fetchResult.rowResult.maxRecordsToFetch);
Row row3 = newRow("row-6", newRecord(FAMILY2, "record-6C", newColumn("testcol18", "value501")));
FetchRowResult rowResult3 = fetchResult.getRowResult();
assertEquals(row3, rowResult3.getRow());
assertEquals(3, rowResult3.getTotalRecords());
selector = new Selector().setRowId("row-6").setStartRecord(3).setMaxRecordsToFetch(1);
fetchResult = new FetchResult();
indexManager.fetchRow(TABLE, selector, fetchResult);
assertNull(fetchResult.rowResult.row.records);