cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r907289 - in /incubator/cassandra/trunk/src/java/org/apache/cassandra: db/RangeSliceCommand.java dht/AbstractBounds.java
Date Sat, 06 Feb 2010 19:44:25 GMT
Author: jbellis
Date: Sat Feb  6 19:44:25 2010
New Revision: 907289

URL: http://svn.apache.org/viewvc?rev=907289&view=rev
Log:
rename RSC and AB serializer classes to match type names.  patch by jbellis

Modified:
    incubator/cassandra/trunk/src/java/org/apache/cassandra/db/RangeSliceCommand.java
    incubator/cassandra/trunk/src/java/org/apache/cassandra/dht/AbstractBounds.java

Modified: incubator/cassandra/trunk/src/java/org/apache/cassandra/db/RangeSliceCommand.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/java/org/apache/cassandra/db/RangeSliceCommand.java?rev=907289&r1=907288&r2=907289&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/java/org/apache/cassandra/db/RangeSliceCommand.java (original)
+++ incubator/cassandra/trunk/src/java/org/apache/cassandra/db/RangeSliceCommand.java Sat
Feb  6 19:44:25 2010
@@ -59,7 +59,7 @@
 
 public class RangeSliceCommand
 {
-    private static final SliceCommandSerializer serializer = new SliceCommandSerializer();
+    private static final RangeSliceCommandSerializer serializer = new RangeSliceCommandSerializer();
     
     public final String keyspace;
 
@@ -117,7 +117,7 @@
     }
 }
 
-class SliceCommandSerializer implements ICompactSerializer<RangeSliceCommand>
+class RangeSliceCommandSerializer implements ICompactSerializer<RangeSliceCommand>
 {
     public void serialize(RangeSliceCommand sliceCommand, DataOutputStream dos) throws IOException
     {

Modified: incubator/cassandra/trunk/src/java/org/apache/cassandra/dht/AbstractBounds.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/java/org/apache/cassandra/dht/AbstractBounds.java?rev=907289&r1=907288&r2=907289&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/java/org/apache/cassandra/dht/AbstractBounds.java (original)
+++ incubator/cassandra/trunk/src/java/org/apache/cassandra/dht/AbstractBounds.java Sat Feb
 6 19:44:25 2010
@@ -7,17 +7,17 @@
 
 public abstract class AbstractBounds
 {
-    private static BoundsSerializer serializer_ = new BoundsSerializer();
+    private static AbstractBoundsSerializer serializer = new AbstractBoundsSerializer();
 
-    private enum Type
+    public static ICompactSerializer2<AbstractBounds> serializer()
     {
-        RANGE,
-        BOUNDS
+        return serializer;
     }
 
-    public static ICompactSerializer2<AbstractBounds> serializer()
+    private enum Type
     {
-        return serializer_;
+        RANGE,
+        BOUNDS
     }
 
     public final Token left;
@@ -31,7 +31,7 @@
 
     public abstract List<AbstractBounds> restrictTo(Range range);
 
-    private static class BoundsSerializer implements ICompactSerializer2<AbstractBounds>
+    private static class AbstractBoundsSerializer implements ICompactSerializer2<AbstractBounds>
     {
         public void serialize(AbstractBounds range, DataOutput out) throws IOException
         {



Mime
View raw message