Class ObjectStorage.Mapping
java.lang.Object
dev.engine_room.flywheel.backend.engine.indirect.ObjectStorage.Mapping
- Enclosing class:
ObjectStorage
Maps serial object indices to pages, and manages the allocation of pages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()voidholePunch(int index) Free a page on the inside of the mapping, maintaining the same virtual mapping size.intobjectIndex2GlobalIndex(int objectIndex) longpage2ByteOffset(int index) intvoidupdateCount(int newLength) voidupdatePage(int index, int modelIndex, int validBits)
-
Constructor Details
-
Mapping
public Mapping()
-
-
Method Details
-
updatePage
public void updatePage(int index, int modelIndex, int validBits) -
holePunch
public void holePunch(int index) Free a page on the inside of the mapping, maintaining the same virtual mapping size.- Parameters:
index- The index of the page to free.
-
updateCount
public void updateCount(int newLength) -
pageCount
public int pageCount() -
page2ByteOffset
public long page2ByteOffset(int index) -
delete
public void delete() -
objectIndex2GlobalIndex
public int objectIndex2GlobalIndex(int objectIndex)
-