// The condition that needs to match for the edit to be applied.
final ByteArrayComparable expected = ByteArrayComparable.newBuilder()
.setValue(Bytes.wrap(this.expected))
.build();
final BinaryComparator cmp = BinaryComparator.newBuilder()
.setComparable(expected)
.build();
final Comparator comparator = Comparator.newBuilder()
.setNameBytes(BINARYCOMPARATOR)
.setSerializedComparator(Bytes.wrap(cmp.toByteArray()))
.build();
final Condition cond = Condition.newBuilder()
.setRow(key)
.setFamily(family)
.setQualifier(qualifier)