- Direct Known Subclasses:
- INLongRep.DefaultRep, INLongRep.EmptyRep
public abstract class INLongRep
extends Object
Holds an array of non-negative long values, one for each slot in an IN.
Zero is the default value and is returned when no value has been set.
The EMPTY_REP is used at first, and is mutated as necessary as values are
set. A minimum number of bytes per value is used, based on the largest
value passed to set().
Optionally, a sparse rep is used when a value is set for EMPTY_REP. Up to 4
values are stored along with their indexes. When the 5th values is set, the
rep is mutated to the default rep.
This object calls IN.updateMemorySize to track the memory it uses.
EMPTY_REP uses no memory because it is a singleton.