Package org.basex.util
Class FreeSlots
java.lang.Object
org.basex.util.FreeSlots
Organizes free slots in heap files.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FreeSlots
public FreeSlots()
-
-
Method Details
-
add
public void add(int size, long offset) Adds a value for the specified slot size.- Parameters:
size- byte sizeoffset- file offset
-
get
public long get(int size, long offset) Returns the offset of a slot that is greater than or equal to the specified size.- Parameters:
size- ideal (minimum) slot sizeoffset- offset used as fallback if no free slot is available- Returns:
- insertion offset
-
toString
-