You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ch...@apache.org on 2017/11/21 12:46:56 UTC

hbase git commit: HBASE-19304 KEEP_DELETED_CELLS should ignore case

Repository: hbase
Updated Branches:
  refs/heads/branch-2 c978f8ab2 -> 13209bce0


HBASE-19304 KEEP_DELETED_CELLS should ignore case

Signed-off-by: Chia-Ping Tsai <ch...@gmail.com>


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

Branch: refs/heads/branch-2
Commit: 13209bce060e777ae1f5fd655142372a6f918eef
Parents: c978f8a
Author: Sergey Soldatov <ss...@apache.org>
Authored: Tue Nov 21 20:39:37 2017 +0800
Committer: Chia-Ping Tsai <ch...@gmail.com>
Committed: Tue Nov 21 20:45:50 2017 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/KeepDeletedCells.java   | 3 +++
 .../apache/hadoop/hbase/client/ColumnFamilyDescriptorBuilder.java | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/13209bce/hbase-client/src/main/java/org/apache/hadoop/hbase/KeepDeletedCells.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/KeepDeletedCells.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/KeepDeletedCells.java
index 32b6aa7..dd19fa1 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/KeepDeletedCells.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/KeepDeletedCells.java
@@ -45,4 +45,7 @@ public enum KeepDeletedCells {
    * time remove deleted cells after the TTL.
    */
   TTL;
+  public static KeepDeletedCells getValue(String val) {
+    return valueOf(val.toUpperCase());
+  }
 }

http://git-wip-us.apache.org/repos/asf/hbase/blob/13209bce/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ColumnFamilyDescriptorBuilder.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ColumnFamilyDescriptorBuilder.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ColumnFamilyDescriptorBuilder.java
index 14f7381..c18e4de 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ColumnFamilyDescriptorBuilder.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ColumnFamilyDescriptorBuilder.java
@@ -898,7 +898,8 @@ public class ColumnFamilyDescriptorBuilder {
 
     @Override
     public KeepDeletedCells getKeepDeletedCells() {
-      return getStringOrDefault(KEEP_DELETED_CELLS_BYTES, KeepDeletedCells::valueOf, DEFAULT_KEEP_DELETED);
+      return getStringOrDefault(KEEP_DELETED_CELLS_BYTES,
+          KeepDeletedCells::getValue, DEFAULT_KEEP_DELETED);
     }
 
     /**