Skip to content

Commit

Permalink
HBASE-22679 : Revamping CellUtil (#735)
Browse files Browse the repository at this point in the history
* HBASE-22679 : Revamping CellUtil

* checkstyle fix

* incorporating review

* minor indentation
  • Loading branch information
virajjasani authored and saintstack committed Oct 22, 2019
1 parent 6e96738 commit 2ad62b0
Show file tree
Hide file tree
Showing 23 changed files with 413 additions and 864 deletions.
Expand Up @@ -687,8 +687,12 @@ private static <T extends Mutation> T toDelta(Function<Bytes, T> supplier, Consu
if (qv.hasTags()) {
tags = qv.getTags().toByteArray();
}
consumer.accept(mutation, CellUtil.createCell(mutation.getRow(), family, qualifier, qv.getTimestamp(),
KeyValue.Type.Put, value, tags));
consumer.accept(mutation, ExtendedCellBuilderFactory.create(CellBuilderType.DEEP_COPY)
.setRow(mutation.getRow()).setFamily(family)
.setQualifier(qualifier).setTimestamp(qv.getTimestamp())
.setType(KeyValue.Type.Put.getCode()).setValue(value)
.setTags(tags).setSequenceId(0)
.build());
}
}
}
Expand Down
Expand Up @@ -180,7 +180,7 @@ public int getValueLength() {

@Override
public byte[] getTagsArray() {
return CellUtil.cloneTags(this);
return PrivateCellUtil.cloneTags(this);
}

@Override
Expand Down

0 comments on commit 2ad62b0

Please sign in to comment.