Skip to content

Commit

Permalink
inline filed initialization that doesn't depend on constructor params
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-1.0@1204529 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jbellis committed Nov 21, 2011
1 parent 8c5f958 commit c80468f
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions src/java/org/apache/cassandra/io/sstable/SSTableMetadata.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,11 @@ static EstimatedHistogram defaultRowSizeHistogram()

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)
{
Expand Down

0 comments on commit c80468f

Please sign in to comment.