You could risk use PrivateCellUtil.setTimestamp() method, but it may break
in future releases since PrivateCellUtil is marked
as @InterfaceAudience.Private. Another option, given both Put and Delete
map to KeyValue cell type, is to check if the Cell type is KeyValue, then
do a cast to access setTimestamp method on the KV.

Em sex, 29 de mar de 2019 às 22:34, Thomas D'Silva
<[email protected]> escreveu:

> In HBase 2.0 since CellUtil.setTimestamp has been deprecated, what is the
> correct way to set the timestamp of a cell from a coprocessor? Phoenix uses
> this API to set the timestamp of a call in our mutable indexing coprocessor
> (see https://issues.apache.org/jira/browse/PHOENIX-5219).
>
> Thanks,
> Thomas
>

Reply via email to