final class FreePhysicalRowIdPage extends PageHeader
| Modifier and Type | Field and Description |
|---|---|
(package private) static short |
ELEMS_PER_PAGE |
private static short |
O_COUNT |
(package private) static short |
O_FREE |
(package private) FreePhysicalRowId[] |
slots |
blockIo, SIZE| Constructor and Description |
|---|
FreePhysicalRowIdPage(BlockIo block)
Constructs a data page view from the indicated block.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) FreePhysicalRowId |
alloc(int slot)
Allocates a slot
|
(package private) void |
free(int slot)
Frees a slot
|
(package private) FreePhysicalRowId |
get(int slot)
Returns the value of the indicated slot
|
(package private) short |
getCount()
Returns the number of free rowids
|
(package private) int |
getFirstFree() |
(package private) int |
getFirstLargerThan(int size) |
(package private) static FreePhysicalRowIdPage |
getFreePhysicalRowIdPageView(BlockIo block)
Factory method to create or return a data page for the indicated block.
|
(package private) boolean |
isAllocated(int slot)
Returns true if a slot is allocated
|
(package private) boolean |
isFree(int slot)
Returns true if a slot is free
|
private void |
setCount(short i)
Sets the number of free rowids
|
(package private) short |
slotToOffset(int slot)
Converts slot to offset
|
java.lang.String |
toString() |
getMagic, getNext, getPrev, getView, paranoiaMagicOk, setNext, setPrev, setTypeprivate static final short O_COUNT
static final short O_FREE
static final short ELEMS_PER_PAGE
FreePhysicalRowId[] slots
FreePhysicalRowIdPage(BlockIo block)
static FreePhysicalRowIdPage getFreePhysicalRowIdPageView(BlockIo block)
short getCount()
private void setCount(short i)
void free(int slot)
FreePhysicalRowId alloc(int slot)
boolean isAllocated(int slot)
boolean isFree(int slot)
FreePhysicalRowId get(int slot)
short slotToOffset(int slot)
int getFirstFree()
int getFirstLargerThan(int size)
public java.lang.String toString()
toString in class PageHeader