public interface IdMapping
Defragment| 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 origId,
int mappedId,
boolean isClassId)
Registers a mapping for the given IDs.
|
void |
mapId(int id,
Slot slot)
Maps an ID to a slot
|
int |
mappedId(int origId)
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.
|
int mappedId(int origId)
origID - The original IDvoid mapId(int origId,
int mappedId,
boolean isClassId)
origID - The original IDmappedID - The ID to be mapped to the original ID.isClassID - true if the given original ID specifies a class slot, false otherwise.void mapId(int id,
Slot slot)
id - slot - Visitable<SlotChange> slotChanges()
void open()
throws java.io.IOException
java.io.IOExceptionvoid close()
int addressForId(int id)
void commit()