hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [3/3] hbase git commit: HBASE-18266 Create static empty byte array to save memory (Ben Epstein)
Date Fri, 30 Jun 2017 22:31:47 GMT
HBASE-18266 Create static empty byte array to save memory (Ben Epstein)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/3b28f66b
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3b28f66b
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3b28f66b

Branch: refs/heads/branch-1
Commit: 3b28f66bf3ee7c0c2b02dbc3434a2ae2f4f1946b
Parents: 262e6bb
Author: Michael Stack <stack@apache.org>
Authored: Fri Jun 30 15:26:43 2017 -0700
Committer: Michael Stack <stack@apache.org>
Committed: Fri Jun 30 15:31:38 2017 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/client/Put.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/3b28f66b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Put.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Put.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Put.java
index 9d9fe8a..7e937de 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Put.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Put.java
@@ -346,7 +346,7 @@ public class Put extends Mutation implements HeapSize, Comparable<Row>
{
    * existing KeyValue object in the family map.
    */
   public boolean has(byte [] family, byte [] qualifier) {
-  return has(family, qualifier, this.ts, new byte[0], true, true);
+  return has(family, qualifier, this.ts, HConstants.EMPTY_BYTE_ARRAY, true, true);
   }
 
   /**
@@ -361,7 +361,7 @@ public class Put extends Mutation implements HeapSize, Comparable<Row>
{
    * existing KeyValue object in the family map.
    */
   public boolean has(byte [] family, byte [] qualifier, long ts) {
-  return has(family, qualifier, ts, new byte[0], false, true);
+  return has(family, qualifier, ts, HConstants.EMPTY_BYTE_ARRAY, false, true);
   }
 
   /**


Mime
View raw message