public class MetadataCollector extends java.lang.Object implements PartitionStatisticsCollector
Modifier and Type | Class and Description |
---|---|
static class |
MetadataCollector.MinMaxIntTracker |
static class |
MetadataCollector.MinMaxLongTracker |
Modifier and Type | Field and Description |
---|---|
protected com.clearspring.analytics.stream.cardinality.ICardinality |
cardinality
Default cardinality estimation method is to use HyperLogLog++.
|
protected IntervalSet<CommitLogPosition> |
commitLogIntervals |
protected double |
compressionRatio |
protected EstimatedHistogram |
estimatedCellPerPartitionCount |
protected EstimatedHistogram |
estimatedPartitionSize |
protected StreamingTombstoneHistogramBuilder |
estimatedTombstoneDropTime |
protected boolean |
hasLegacyCounterShards |
protected MetadataCollector.MinMaxIntTracker |
localDeletionTimeTracker |
static double |
NO_COMPRESSION_RATIO |
protected int |
sstableLevel |
protected MetadataCollector.MinMaxLongTracker |
timestampTracker |
protected long |
totalColumnsSet |
protected long |
totalRows |
int |
totalTombstones |
protected MetadataCollector.MinMaxIntTracker |
ttlTracker |
Constructor and Description |
---|
MetadataCollector(ClusteringComparator comparator) |
MetadataCollector(ClusteringComparator comparator,
java.util.UUID originatingHostId) |
MetadataCollector(java.lang.Iterable<SSTableReader> sstables,
ClusteringComparator comparator,
int level) |
Modifier and Type | Method and Description |
---|---|
MetadataCollector |
addCellPerPartitionCount(long cellCount) |
MetadataCollector |
addCompressionRatio(long compressed,
long uncompressed)
Ratio is compressed/uncompressed and it is
if you have 1.x then compression isn't helping
|
MetadataCollector |
addKey(java.nio.ByteBuffer key) |
MetadataCollector |
addPartitionSizeInBytes(long partitionSize) |
MetadataCollector |
commitLogIntervals(IntervalSet<CommitLogPosition> commitLogIntervals) |
static StatsMetadata |
defaultStatsMetadata() |
java.util.Map<MetadataType,MetadataComponent> |
finalizeMetadata(java.lang.String partitioner,
double bloomFilterFPChance,
long repairedAt,
TimeUUID pendingRepair,
boolean isTransient,
SerializationHeader header) |
void |
release()
Release large memory objects while keeping metrics intact
|
MetadataCollector |
sstableLevel(int sstableLevel) |
void |
update(Cell<?> cell) |
void |
update(DeletionTime dt) |
void |
update(LivenessInfo newInfo) |
MetadataCollector |
updateClusteringValues(ClusteringPrefix<?> clustering) |
void |
updateColumnSetPerRow(long columnSetInRow) |
void |
updateHasLegacyCounterShards(boolean hasLegacyCounterShards) |
public static final double NO_COMPRESSION_RATIO
protected EstimatedHistogram estimatedPartitionSize
protected EstimatedHistogram estimatedCellPerPartitionCount
protected IntervalSet<CommitLogPosition> commitLogIntervals
protected final MetadataCollector.MinMaxLongTracker timestampTracker
protected final MetadataCollector.MinMaxIntTracker localDeletionTimeTracker
protected final MetadataCollector.MinMaxIntTracker ttlTracker
protected double compressionRatio
protected StreamingTombstoneHistogramBuilder estimatedTombstoneDropTime
protected int sstableLevel
protected boolean hasLegacyCounterShards
protected long totalColumnsSet
protected long totalRows
public int totalTombstones
protected com.clearspring.analytics.stream.cardinality.ICardinality cardinality
public MetadataCollector(ClusteringComparator comparator)
public MetadataCollector(ClusteringComparator comparator, java.util.UUID originatingHostId)
public MetadataCollector(java.lang.Iterable<SSTableReader> sstables, ClusteringComparator comparator, int level)
public static StatsMetadata defaultStatsMetadata()
public MetadataCollector addKey(java.nio.ByteBuffer key)
public MetadataCollector addPartitionSizeInBytes(long partitionSize)
public MetadataCollector addCellPerPartitionCount(long cellCount)
public MetadataCollector addCompressionRatio(long compressed, long uncompressed)
public void update(LivenessInfo newInfo)
update
in interface PartitionStatisticsCollector
public void update(Cell<?> cell)
update
in interface PartitionStatisticsCollector
public void update(DeletionTime dt)
update
in interface PartitionStatisticsCollector
public void updateColumnSetPerRow(long columnSetInRow)
updateColumnSetPerRow
in interface PartitionStatisticsCollector
public MetadataCollector commitLogIntervals(IntervalSet<CommitLogPosition> commitLogIntervals)
public MetadataCollector sstableLevel(int sstableLevel)
public MetadataCollector updateClusteringValues(ClusteringPrefix<?> clustering)
public void updateHasLegacyCounterShards(boolean hasLegacyCounterShards)
updateHasLegacyCounterShards
in interface PartitionStatisticsCollector
public java.util.Map<MetadataType,MetadataComponent> finalizeMetadata(java.lang.String partitioner, double bloomFilterFPChance, long repairedAt, TimeUUID pendingRepair, boolean isTransient, SerializationHeader header)
public void release()
Copyright © 2009- The Apache Software Foundation