@Test public void testReset() { RowAdapter.RowBuilder<Result> rowBuilder = underTest.createRowBuilder(); rowBuilder.startRow(ROW_KEY); rowBuilder.startCell( COL_FAMILY, QUAL_ONE, 10000L, Collections.<String>emptyList(), VALUE.size()); rowBuilder.cellValue(VALUE); rowBuilder.finishCell(); rowBuilder.reset(); ByteString anotherKey = ByteString.copyFromUtf8("another-rowKey"); rowBuilder.startRow(anotherKey); rowBuilder.startCell(COL_FAMILY, QUAL_TWO, 40000L, LABELS, VALUE.size()); rowBuilder.cellValue(VALUE); rowBuilder.finishCell(); Result actual = rowBuilder.finishRow(); assertResult( Result.create( ImmutableList.<Cell>of( new RowCell( anotherKey.toByteArray(), COL_FAMILY.getBytes(), QUAL_TWO.toByteArray(), 40L, VALUE.toByteArray()))), actual); }
@Override public RowBuilder<Result> createRowBuilder() { return new RowResultBuilder(); }
RowResultAdapter implements RowAdapter<Result> { @Override public RowBuilder<Result> createRowBuilder() { return new RowResultBuilder(); } }
RowResultAdapter implements RowAdapter<Result> { @Override public RowBuilder<Result> createRowBuilder() { return new RowResultBuilder(); }  }
RowResultAdapter implements RowAdapter<Result> { @Override public RowBuilder<Result> createRowBuilder() { return new RowResultBuilder(); }  @Override RowBuilder<Result> createRowBuilder(); @Override boolean isScanMarkerRow(Result result); @Override ByteString getKey(Result result); }
RowResultAdapter implements RowAdapter<Result> { @Override public RowBuilder<Result> createRowBuilder() { return new RowResultBuilder(); }  @Override RowBuilder<Result> createRowBuilder(); @Override boolean isScanMarkerRow(Result result); @Override ByteString getKey(Result result);  }