Class TombstoneHistogram
- java.lang.Object
-
- org.apache.cassandra.utils.streamhist.TombstoneHistogram
-
public class TombstoneHistogram extends java.lang.ObjectA snapshot or finished histrogram of tombstones for a sstable, as generated fromStreamingTombstoneHistogramBuilder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTombstoneHistogram.HistogramSerializer
-
Field Summary
Fields Modifier and Type Field Description static TombstoneHistogram.HistogramSerializerserializer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TombstoneHistogramcreateDefault()booleanequals(java.lang.Object o)<E extends java.lang.Exception>
voidforEach(HistogramDataConsumer<E> histogramDataConsumer)inthashCode()intsize()doublesum(double b)Calculates estimated number of points in interval [-inf,b].
-
-
-
Field Detail
-
serializer
public static final TombstoneHistogram.HistogramSerializer serializer
-
-
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
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-