@Test public void testOnlyValueIsDifferent() { ByteString valuePart1 = ByteString.copyFromUtf8("part-1"); RowAdapter.RowBuilder<Result> rowBuilder = underTest.createRowBuilder(); rowBuilder.startRow(ROW_KEY); rowBuilder.startCell(COL_FAMILY, QUAL_ONE, 30000L, LABELS, VALUE.size()); rowBuilder.cellValue(VALUE); rowBuilder.finishCell(); rowBuilder.startCell(COL_FAMILY, QUAL_ONE, 30000L, LABELS, valuePart1.size()); rowBuilder.cellValue(valuePart1); rowBuilder.finishCell(); Result actual = rowBuilder.finishRow(); assertEquals(2, actual.size()); Result expected = Result.create( ImmutableList.<Cell>of( new RowCell( ROW_KEY.toByteArray(), COL_FAMILY.getBytes(), QUAL_ONE.toByteArray(), 30L, VALUE.toByteArray(), LABELS), new RowCell( ROW_KEY.toByteArray(), COL_FAMILY.getBytes(), QUAL_ONE.toByteArray(), 30L, valuePart1.toByteArray(), LABELS))); assertResult(expected, 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);  }