cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1204529 - /cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/io/sstable/SSTableMetadata.java
Date Mon, 21 Nov 2011 15:01:17 GMT
Author: jbellis
Date: Mon Nov 21 15:01:17 2011
New Revision: 1204529

URL: http://svn.apache.org/viewvc?rev=1204529&view=rev
Log:
inline filed initialization that doesn't depend on constructor params

Modified:
    cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/io/sstable/SSTableMetadata.java

Modified: cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/io/sstable/SSTableMetadata.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/io/sstable/SSTableMetadata.java?rev=1204529&r1=1204528&r2=1204529&view=diff
==============================================================================
--- cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/io/sstable/SSTableMetadata.java
(original)
+++ cassandra/branches/cassandra-1.0/src/java/org/apache/cassandra/io/sstable/SSTableMetadata.java
Mon Nov 21 15:01:17 2011
@@ -104,20 +104,11 @@ public class SSTableMetadata
 
     public static class Collector
     {
-        protected EstimatedHistogram estimatedRowSize;
-        protected EstimatedHistogram estimatedColumnCount;
-        protected ReplayPosition replayPosition;
-        protected long maxTimestamp;
-        protected double compressionRatio;
-
-        private Collector()
-        {
-            this.estimatedRowSize = defaultRowSizeHistogram();
-            this.estimatedColumnCount = defaultColumnCountHistogram();
-            this.replayPosition = ReplayPosition.NONE;
-            this.maxTimestamp = Long.MIN_VALUE;
-            this.compressionRatio = Double.MIN_VALUE;
-        }
+        protected EstimatedHistogram estimatedRowSize = defaultRowSizeHistogram();
+        protected EstimatedHistogram estimatedColumnCount = defaultColumnCountHistogram();
+        protected ReplayPosition replayPosition = ReplayPosition.NONE;
+        protected long maxTimestamp = Long.MIN_VALUE;
+        protected double compressionRatio = Double.MIN_VALUE;
 
         public void addRowSize(long rowSize)
         {



Mime
View raw message