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 boolean |
hasLegacyCounterShards |
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) |
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 boolean hasLegacyCounterShards
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 MetadataCollector addKey(java.nio.ByteBuffer key)
public MetadataCollector addRowSize(long rowSize)
public MetadataCollector addColumnCount(long columnCount)
public MetadataCollector mergeTombstoneHistogram(StreamingHistogram histogram)
public MetadataCollector addCompressionRatio(long compressed, long uncompressed)
public MetadataCollector updateMinTimestamp(long potentialMin)
public MetadataCollector updateMaxTimestamp(long potentialMax)
public MetadataCollector updateMaxLocalDeletionTime(int maxLocalDeletionTime)
public MetadataCollector estimatedRowSize(EstimatedHistogram estimatedRowSize)
public MetadataCollector estimatedColumnCount(EstimatedHistogram estimatedColumnCount)
public MetadataCollector replayPosition(ReplayPosition replayPosition)
public MetadataCollector addAncestor(int generation)
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 MetadataCollector updateHasLegacyCounterShards(boolean hasLegacyCounterShards)
public MetadataCollector update(long rowSize, ColumnStats stats)
public java.util.Map<MetadataType,MetadataComponent> finalizeMetadata(java.lang.String partitioner, double bloomFilterFPChance, long repairedAt)
Copyright © 2015 The Apache Software Foundation