Package org.roaringbitmap.insights
Class BitmapStatistics
- java.lang.Object
-
- org.roaringbitmap.insights.BitmapStatistics
-
public class BitmapStatistics extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BitmapStatistics.ArrayContainersStats
-
Field Summary
Fields Modifier and Type Field Description static BitmapStatistics
empty
-
Method Summary
Modifier and Type Method Description long
containerCount()
double
containerFraction(long containerTypeCount)
Calculates what fraction of all containers is the `containerTypeCount`boolean
equals(java.lang.Object o)
BitmapStatistics.ArrayContainersStats
getArrayContainersStats()
long
getBitmapContainerCount()
long
getBitmapsCount()
long
getRunContainerCount()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
empty
public static final BitmapStatistics empty
-
-
Method Detail
-
containerFraction
public double containerFraction(long containerTypeCount)
Calculates what fraction of all containers is the `containerTypeCount`- Parameters:
containerTypeCount
- denominator- Returns:
- some fraction
-
getArrayContainersStats
public BitmapStatistics.ArrayContainersStats getArrayContainersStats()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
containerCount
public long containerCount()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getBitmapsCount
public long getBitmapsCount()
-
getBitmapContainerCount
public long getBitmapContainerCount()
-
getRunContainerCount
public long getRunContainerCount()
-
-