FlatRowAdapter implements RowAdapter<FlatRow> { @Override public boolean isScanMarkerRow(FlatRow row) { return row.getCells().isEmpty(); }  @Override RowBuilder<FlatRow> createRowBuilder(); @Override boolean isScanMarkerRow(FlatRow row); @Override ByteString getKey(FlatRow row);  }
@Test public void testWithMarkerRow() { FlatRow markerRow = rowBuilder.createScanMarkerRow(ByteString.copyFromUtf8("key")); Assert.assertTrue(adapter.isScanMarkerRow(markerRow)); ByteString value = ByteString.copyFromUtf8("value"); rowBuilder.startRow(ByteString.copyFromUtf8("key")); rowBuilder.startCell( "family", ByteString.EMPTY, 1000, ImmutableList.<String>of(), value.size()); rowBuilder.cellValue(value); rowBuilder.finishCell(); Assert.assertFalse(adapter.isScanMarkerRow(rowBuilder.finishRow())); }