hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From li...@apache.org
Subject svn commit: r1516529 - /hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java
Date Thu, 22 Aug 2013 18:18:23 GMT
Author: liyin
Date: Thu Aug 22 18:18:23 2013
New Revision: 1516529

URL: http://svn.apache.org/r1516529
Log:
[master]Remove unnecessary "{" in description printing

Author: fan

Summary: Remove unnecessary "{" in description printing, also because there is no corresponding
closing bracket.

Test Plan: Generate description and see if the problem is fixed

Reviewers: liyintang

Reviewed By: liyintang

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D938508

Task ID: 2756340

Modified:
    hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java

Modified: hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java?rev=1516529&r1=1516528&r2=1516529&view=diff
==============================================================================
--- hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java (original)
+++ hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java Thu
Aug 22 18:18:23 2013
@@ -709,17 +709,17 @@ public class HColumnDescriptor implement
     return setBloomFilterType(BloomType.valueOf(bloomTypeStr.toUpperCase()));
   }
 
-   public void setBloomFilterErrorRate(float bloomErrorRate) {
-	   setValue(BLOOMFILTER_ERRORRATE, Float.toString(bloomErrorRate));
-   }
-   public float getBloomFilterErrorRate() {
-	    String value = getValue(BLOOMFILTER_ERRORRATE);
-	    return (value != null)? Float.valueOf(value).floatValue() : DEFAULT_BLOOMFILTER_ERROR_RATE;
-	  }
-
-   /**
-    * @return the scope tag
-    */
+  public void setBloomFilterErrorRate(float bloomErrorRate) {
+    setValue(BLOOMFILTER_ERRORRATE, Float.toString(bloomErrorRate));
+  }
+  public float getBloomFilterErrorRate() {
+    String value = getValue(BLOOMFILTER_ERRORRATE);
+    return (value != null)? Float.valueOf(value).floatValue() : DEFAULT_BLOOMFILTER_ERROR_RATE;
+  }
+
+  /**
+   * @return the scope tag
+   */
   public int getScope() {
     String value = getValue(REPLICATION_SCOPE);
     if (value != null) {
@@ -790,7 +790,7 @@ public class HColumnDescriptor implement
     // print all other keys as advanced options
     if (hasAdvancedKeys) {
       s.append(", ");
-      s.append("{").append(HConstants.CONFIG).append(" => ");
+      s.append(HConstants.CONFIG).append(" => ");
       s.append('{');
       boolean printComma = false;
       for (ImmutableBytesWritable k : values.keySet()) {



Mime
View raw message