OffsetCachepublic class OffsetCache extends IntToIntMapper This class implements a record offset cache. It enables us to quickly
find offsets for records whose IDs we know. |
Fields Summary |
---|
static final int | NO_OFFSETA special value for LastSeenOffset.
There's a database header at offset 0, and 0 means we have not seen any
records yet. | public int | LastSeenOffsetAfter this offset there's no cached record IDs.
(An OffsetCache may cache offsets only for already seen records.)
The value NO_OFFSET is a special value for this variable:
NO_OFFSET means we have not seen any records yet. |
Constructors Summary |
---|
OffsetCache(int initialCapacity, int defaultElement, int capacityIncrement)Constructs an empty OffsetCache with the specified initial capacity and
capacity increment.
super(initialCapacity, defaultElement, capacityIncrement);
|
|