From 6ddf893a34039338ce6387728c416d05ae4a7c00 Mon Sep 17 00:00:00 2001 From: Sean Busbey Date: Tue, 14 May 2019 19:56:17 -0500 Subject: [PATCH] HBASE-22148 Provide a LimitedPrivate(COPROC) API for setting Cell timestamp without copying. Signed-off-by: Josh Elser --- .../main/java/org/apache/hadoop/hbase/CellUtil.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java index b5d2f4723e1..b838eedf7b6 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java @@ -1116,25 +1116,27 @@ public final class CellUtil { /** * Sets the given timestamp to the cell. + * + * Note that this method is a LimitedPrivate API and may change between minor releases. * @param cell * @param ts * @throws IOException when the passed cell is not of type {@link ExtendedCell} - * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0. */ - @Deprecated + @InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC) public static void setTimestamp(Cell cell, long ts) throws IOException { PrivateCellUtil.setTimestamp(cell, ts); } /** * Sets the given timestamp to the cell. + * + * Note that this method is a LimitedPrivate API and may change between minor releases. * @param cell * @param ts buffer containing the timestamp value * @param tsOffset offset to the new timestamp * @throws IOException when the passed cell is not of type {@link ExtendedCell} - * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0. */ - @Deprecated + @InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC) public static void setTimestamp(Cell cell, byte[] ts, int tsOffset) throws IOException { PrivateCellUtil.setTimestamp(cell, Bytes.toLong(ts, tsOffset)); }