Package com.zaxxer.sparsebits
Class SparseBitSet.Cache
java.lang.Object
com.zaxxer.sparsebits.SparseBitSet.Cache
- Enclosing class:
SparseBitSet
This 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
a2Count is updated by the statisticsUpdate() method, and will only be correct immediately after a full update.protected int
a3Count is updated by the statisticsUpdate() method, and will only be correct immediately after a full update.protected int
cardinality is updated by the statisticsUpdate() method.protected int
count is updated by the statisticsUpdate() method.protected int
hash is updated by the statisticsUpdate() method.protected int
length is updated by the statisticsUpdate() method.protected int
size is updated by the statisticsUpdate() method. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
hash
protected transient int hashhash 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 sizesize 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 cardinalitycardinality 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 lengthlength 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 countcount 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 a2Counta2Count 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 a3Counta3Count 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.
-
-
Constructor Details
-
Cache
protected Cache()
-