Package com.zaxxer.sparsebits
Class SparseBitSet.Cache
- java.lang.Object
-
- com.zaxxer.sparsebits.SparseBitSet.Cache
-
- Enclosing class:
- SparseBitSet
protected class SparseBitSet.Cache extends java.lang.ObjectThis class holds the values related to various statistics kept about the bit set. These values are not kept continuously up-to-date. Whenever the values become invalid, the field hash is set to zero, indicating that an update is required.- See Also:
SparseBitSet.statisticsUpdate()
-
-
Field Summary
Fields Modifier and Type Field Description protected inta2Counta2Count is updated by the statisticsUpdate() method, and will only be correct immediately after a full update.protected inta3Counta3Count is updated by the statisticsUpdate() method, and will only be correct immediately after a full update.protected intcardinalitycardinality is updated by the statisticsUpdate() method.protected intcountcount is updated by the statisticsUpdate() method.protected inthashhash is updated by the statisticsUpdate() method.protected intlengthlength is updated by the statisticsUpdate() method.protected intsizesize is updated by the statisticsUpdate() method.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCache()
-
-
-
Field Detail
-
hash
protected transient int hash
hash is updated by the statisticsUpdate() method. If the hash value is zero, it is assumed that all the cached values are stale, and must be updated.
-
size
protected transient int size
size is updated by the statisticsUpdate() method. If the hash value is zero, it is assumed the all the cached values are stale, and must be updated.
-
cardinality
protected transient int cardinality
cardinality is updated by the statisticsUpdate() method. If the hash value is zero, it is assumed the all the cached values are stale, and must be updated.
-
length
protected transient int length
length is updated by the statisticsUpdate() method. If the hash value is zero, it is assumed the all the cached values are stale, and must be updated.
-
count
protected transient int count
count is updated by the statisticsUpdate() method. If the hash value is zero, it is assumed the all the cached values are stale, and must be updated.
-
a2Count
protected transient int a2Count
a2Count is updated by the statisticsUpdate() method, and will only be correct immediately after a full update. The hash value is must be zero for all values to be updated.
-
a3Count
protected transient int a3Count
a3Count is updated by the statisticsUpdate() method, and will only be correct immediately after a full update. The hash value is must be zero for all values to be updated.
-
-