class FreeLogicalRowIdPage extends PageHeader
| Modifier and Type | Field and Description |
|---|---|
(package private) static short |
ELEMS_PER_PAGE
The number of elements by page
|
private static short |
O_COUNT
The offset for the number of free pages
|
(package private) static short |
O_FREE
Offset of the number of free row Ids
|
(package private) PhysicalRowId[] |
slots |
blockIo, SIZE| Constructor and Description |
|---|
FreeLogicalRowIdPage(BlockIo blockIo)
Constructs a data page view from the indicated block.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) PhysicalRowId |
alloc(int slot)
Allocates a slot
|
(package private) void |
free(int slot)
Frees a slot
|
(package private) PhysicalRowId |
get(int slot)
Returns the value of the indicated slot
|
(package private) short |
getCount() |
(package private) int |
getFirstAllocated() |
(package private) int |
getFirstFree()
Returns first free slot, -1 if no slots are available
|
(package private) static FreeLogicalRowIdPage |
getFreeLogicalRowIdPageView(BlockIo blockIo)
Factory method to create or return a data page for the indicated block.
|
private boolean |
isAllocated(int slot)
Returns true if a slot is allocated
|
private boolean |
isFree(int slot)
Returns true if a slot is free
|
private void |
setCount(short i)
Sets the number of free rowids
|
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
final PhysicalRowId[] slots
FreeLogicalRowIdPage(BlockIo blockIo)
static FreeLogicalRowIdPage getFreeLogicalRowIdPageView(BlockIo blockIo)
short getCount()
private void setCount(short i)
void free(int slot)
PhysicalRowId alloc(int slot)
private boolean isAllocated(int slot)
private boolean isFree(int slot)
PhysicalRowId get(int slot)
private short slotToOffset(int slot)
int getFirstFree()
int getFirstAllocated()
public java.lang.String toString()
toString in class PageHeader