Class TombstoneHistogram
- java.lang.Object
-
- org.apache.cassandra.utils.streamhist.TombstoneHistogram
-
public class TombstoneHistogram extends java.lang.Object
A snapshot or finished histrogram of tombstones for a sstable, as generated fromStreamingTombstoneHistogramBuilder
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TombstoneHistogram.HistogramSerializer
static class
TombstoneHistogram.LegacyHistogramSerializer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TombstoneHistogram
createDefault()
boolean
equals(java.lang.Object o)
<E extends java.lang.Exception>
voidforEach(HistogramDataConsumer<E> histogramDataConsumer)
static TombstoneHistogram.HistogramSerializer
getSerializer(Version version)
int
hashCode()
int
size()
double
sum(double b)
Calculates estimated number of points in interval [-inf,b].
-
-
-
Method Detail
-
createDefault
public static TombstoneHistogram createDefault()
-
sum
public double sum(double b)
Calculates estimated number of points in interval [-inf,b].- Parameters:
b
- upper bound of a interval to calculate sum- Returns:
- estimated number of points in a interval [-inf,b].
-
size
public int size()
-
forEach
public <E extends java.lang.Exception> void forEach(HistogramDataConsumer<E> histogramDataConsumer) throws E extends java.lang.Exception
- Throws:
E extends java.lang.Exception
-
getSerializer
public static TombstoneHistogram.HistogramSerializer getSerializer(Version version)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-