public class MetadataCollector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<java.lang.Integer> |
ancestors |
protected com.clearspring.analytics.stream.cardinality.ICardinality |
cardinality
Default cardinality estimation method is to use HyperLogLog++.
|
protected double |
compressionRatio |
protected EstimatedHistogram |
estimatedColumnCount |
protected EstimatedHistogram |
estimatedRowSize |
protected StreamingHistogram |
estimatedTombstoneDropTime |
protected java.util.List<java.nio.ByteBuffer> |
maxColumnNames |
protected int |
maxLocalDeletionTime |
protected long |
maxTimestamp |
protected java.util.List<java.nio.ByteBuffer> |
minColumnNames |
protected long |
minTimestamp |
static double |
NO_COMPRESSION_RATIO |
protected ReplayPosition |
replayPosition |
protected int |
sstableLevel |
Constructor and Description |
---|
MetadataCollector(CellNameType columnNameComparator) |
MetadataCollector(java.util.Collection<SSTableReader> sstables,
CellNameType columnNameComparator,
int level) |
Modifier and Type | Method and Description |
---|---|
MetadataCollector |
addAncestor(int generation) |
void |
addColumnCount(long columnCount) |
void |
addCompressionRatio(long compressed,
long uncompressed)
Ratio is compressed/uncompressed and it is
if you have 1.x then compression isn't helping
|
void |
addKey(java.nio.ByteBuffer key) |
void |
addRowSize(long rowSize) |
static StatsMetadata |
defaultStatsMetadata() |
MetadataCollector |
estimatedColumnCount(EstimatedHistogram estimatedColumnCount) |
MetadataCollector |
estimatedRowSize(EstimatedHistogram estimatedRowSize) |
java.util.Map<MetadataType,MetadataComponent> |
finalizeMetadata(java.lang.String partitioner,
double bloomFilterFPChance,
long repairedAt) |
void |
mergeTombstoneHistogram(StreamingHistogram histogram) |
MetadataCollector |
replayPosition(ReplayPosition replayPosition) |
MetadataCollector |
sstableLevel(int sstableLevel) |
void |
update(long size,
ColumnStats stats) |
MetadataCollector |
updateMaxColumnNames(java.util.List<java.nio.ByteBuffer> maxColumnNames) |
void |
updateMaxLocalDeletionTime(int maxLocalDeletionTime) |
void |
updateMaxTimestamp(long potentialMax) |
MetadataCollector |
updateMinColumnNames(java.util.List<java.nio.ByteBuffer> minColumnNames) |
void |
updateMinTimestamp(long potentialMin) |
public static final double NO_COMPRESSION_RATIO
protected EstimatedHistogram estimatedRowSize
protected EstimatedHistogram estimatedColumnCount
protected ReplayPosition replayPosition
protected long minTimestamp
protected long maxTimestamp
protected int maxLocalDeletionTime
protected double compressionRatio
protected java.util.Set<java.lang.Integer> ancestors
protected StreamingHistogram estimatedTombstoneDropTime
protected int sstableLevel
protected java.util.List<java.nio.ByteBuffer> minColumnNames
protected java.util.List<java.nio.ByteBuffer> maxColumnNames
protected com.clearspring.analytics.stream.cardinality.ICardinality cardinality
public MetadataCollector(CellNameType columnNameComparator)
public MetadataCollector(java.util.Collection<SSTableReader> sstables, CellNameType columnNameComparator, int level)
public static StatsMetadata defaultStatsMetadata()
public void addKey(java.nio.ByteBuffer key)
public void addRowSize(long rowSize)
public void addColumnCount(long columnCount)
public void mergeTombstoneHistogram(StreamingHistogram histogram)
public void addCompressionRatio(long compressed, long uncompressed)
public void updateMinTimestamp(long potentialMin)
public void updateMaxTimestamp(long potentialMax)
public void updateMaxLocalDeletionTime(int maxLocalDeletionTime)
public MetadataCollector estimatedRowSize(EstimatedHistogram estimatedRowSize)
public MetadataCollector estimatedColumnCount(EstimatedHistogram estimatedColumnCount)
public MetadataCollector replayPosition(ReplayPosition replayPosition)
public MetadataCollector addAncestor(int generation)
public void update(long size, ColumnStats stats)
public MetadataCollector sstableLevel(int sstableLevel)
public MetadataCollector updateMinColumnNames(java.util.List<java.nio.ByteBuffer> minColumnNames)
public MetadataCollector updateMaxColumnNames(java.util.List<java.nio.ByteBuffer> maxColumnNames)
public java.util.Map<MetadataType,MetadataComponent> finalizeMetadata(java.lang.String partitioner, double bloomFilterFPChance, long repairedAt)
Copyright © 2014 The Apache Software Foundation