assertEquals(1, rowResult.getTotalRecords());
}
@Test
public void testMultipleMutationReplaceRecordWithInSameBatch() throws Exception {
RowMutation mutation1 = newRowMutation(
TABLE,
"row-4000",
newRecordMutation(FAMILY, "record-4a", newColumn("testcol1", "value2"), newColumn("testcol2", "value3"),
newColumn("testcol3", "value4")));
RowMutation mutation2 = newRowMutation(
TABLE,
"row-4000",
newRecordMutation(FAMILY, "record-4b", newColumn("testcol1", "value2"), newColumn("testcol2", "value3"),
newColumn("testcol3", "value4")));
mutation1.setRowMutationType(RowMutationType.UPDATE_ROW);
mutation2.setRowMutationType(RowMutationType.UPDATE_ROW);
indexManager.mutate(Arrays.asList(mutation1, mutation2));
Selector selector = new Selector().setRowId("row-4000");
FetchResult fetchResult = new FetchResult();
indexManager.fetchRow(TABLE, selector, fetchResult);
assertNotNull(fetchResult.rowResult.row);