hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ecl...@apache.org
Subject svn commit: r1522699 - /hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java
Date Thu, 12 Sep 2013 19:26:33 GMT
Author: eclark
Date: Thu Sep 12 19:26:32 2013
New Revision: 1522699

URL: http://svn.apache.org/r1522699
Log:
HBASE-9401 add getQualifierBufferShallowCopy

Modified:
    hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java

Modified: hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java?rev=1522699&r1=1522698&r2=1522699&view=diff
==============================================================================
--- hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java (original)
+++ hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java Thu Sep 12
19:26:32 2013
@@ -117,7 +117,12 @@ public final class CellUtil {
   public static ByteBuffer getValueBufferShallowCopy(Cell cell) {
     ByteBuffer buffer = ByteBuffer.wrap(cell.getValueArray(), cell.getValueOffset(),
       cell.getValueLength());
-//    buffer.position(buffer.limit());//make it look as if value was appended
+    return buffer;
+  }
+
+  public static ByteBuffer getQualifierBufferShallowCopy(Cell cell) {
+    ByteBuffer buffer = ByteBuffer.wrap(cell.getQualifierArray(), cell.getQualifierOffset(),
+        cell.getQualifierLength());
     return buffer;
   }
 



Mime
View raw message