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.
- Since:
- 1.6
- Version:
- 1.0, 2009-03-17
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected inta2Count is updated by the statisticsUpdate() method, and will only be correct immediately after a full update.protected inta3Count is updated by the statisticsUpdate() method, and will only be correct immediately after a full update.protected intcardinality is updated by the statisticsUpdate() method.protected intcount is updated by the statisticsUpdate() method.protected inthash is updated by the statisticsUpdate() method.protected intlength is updated by the statisticsUpdate() method.protected intsize 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()
-