public class InMemoryIdMapping extends AbstractIdMapping
DatabaseIdMapping but
it uses more memory. If you have OutOfMemory conditions
with this id mapping, use the DatabaseIdMapping
instead.Defragment| Constructor and Description |
|---|
InMemoryIdMapping() |
| Modifier and Type | Method and Description |
|---|---|
int |
addressForId(int id)
returns the slot address for an ID
|
void |
close()
Shuts down the mapping after use.
|
void |
commit() |
void |
mapId(int id,
Slot slot)
Maps an ID to a slot
|
protected void |
mapNonClassIDs(int origID,
int mappedID) |
int |
mappedId(int oldID)
Returns a previously registered mapping ID for the given ID if it exists.
|
void |
open()
Prepares the mapping for use.
|
Visitable<SlotChange> |
slotChanges()
provides a Visitable of all mappings of IDs to slots.
|
mapId, mappedClassIDpublic int mappedId(int oldID)
IdMappingpublic void open()
IdMappingpublic void close()
IdMappingprotected void mapNonClassIDs(int origID,
int mappedID)
mapNonClassIDs in class AbstractIdMappingpublic int addressForId(int id)
IdMappingpublic void mapId(int id,
Slot slot)
IdMappingpublic Visitable<SlotChange> slotChanges()
IdMappingpublic void commit()