cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [3/8] git commit: rename Range @param bi to @param point
Date Mon, 16 Apr 2012 20:46:20 GMT
rename Range @param bi to @param point


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/211bc0ca
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/211bc0ca
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/211bc0ca

Branch: refs/heads/trunk
Commit: 211bc0ca3d01475a8780c73cd4e6c26c7dcc04be
Parents: 57b9a34
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Tue Mar 27 11:59:40 2012 -0500
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Mon Apr 16 15:32:19 2012 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/dht/Range.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/211bc0ca/src/java/org/apache/cassandra/dht/Range.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/dht/Range.java b/src/java/org/apache/cassandra/dht/Range.java
index d6137d4..3f1d41b 100644
--- a/src/java/org/apache/cassandra/dht/Range.java
+++ b/src/java/org/apache/cassandra/dht/Range.java
@@ -48,7 +48,7 @@ public class Range<T extends RingPosition> extends AbstractBounds<T>
implements
         super(left, right, partitioner);
     }
 
-    public static <T extends RingPosition> boolean contains(T left, T right, T bi)
+    public static <T extends RingPosition> boolean contains(T left, T right, T point)
     {
         if (isWrapAround(left, right))
         {
@@ -59,17 +59,17 @@ public class Range<T extends RingPosition> extends AbstractBounds<T>
implements
              * (2) k <= b -- return true
              * (3) b < k <= a -- return false
              */
-            if (bi.compareTo(left) > 0)
+            if (point.compareTo(left) > 0)
                 return true;
             else
-                return right.compareTo(bi) >= 0;
+                return right.compareTo(point) >= 0;
         }
         else
         {
             /*
              * This is the range (a, b] where a < b.
              */
-            return bi.compareTo(left) > 0 && right.compareTo(bi) >= 0;
+            return point.compareTo(left) > 0 && right.compareTo(point) >= 0;
         }
     }
 
@@ -104,12 +104,12 @@ public class Range<T extends RingPosition> extends AbstractBounds<T>
implements
     /**
      * Helps determine if a given point on the DHT ring is contained
      * in the range in question.
-     * @param bi point in question
+     * @param point point in question
      * @return true if the point contains within the range else false.
      */
-    public boolean contains(T bi)
+    public boolean contains(T point)
     {
-        return contains(left, right, bi);
+        return contains(left, right, point);
     }
 
     /**


Mime
View raw message