|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjdbm.recman.PageHeader
jdbm.recman.FreeLogicalRowIdPage
Class describing a page that holds logical rowids that were freed. Note that the methods have *physical* rowids in their signatures - this is because logical and physical rowids are internally the same, only their external representation (i.e. in the client API) differs.
Field Summary | |
(package private) static short |
ELEMS_PER_PAGE
|
(package private) static short |
O_FREE
|
(package private) PhysicalRowId[] |
slots
|
Fields inherited from class jdbm.recman.PageHeader |
block, SIZE |
Constructor Summary | |
(package private) |
FreeLogicalRowIdPage(BlockIo block)
Constructs a data page view from the indicated block. |
Method Summary | |
(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()
Returns the number of free rowids |
(package private) int |
getFirstAllocated()
Returns first allocated slot, -1 if no slots are available. |
(package private) int |
getFirstFree()
Returns first free slot, -1 if no slots are available |
(package private) static FreeLogicalRowIdPage |
getFreeLogicalRowIdPageView(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 |
Methods inherited from class jdbm.recman.PageHeader |
getMagic, getNext, getPrev, getView, paranoiaMagicOk, setNext, setPrev, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final short O_FREE
static final short ELEMS_PER_PAGE
final PhysicalRowId[] slots
Constructor Detail |
FreeLogicalRowIdPage(BlockIo block)
Method Detail |
static FreeLogicalRowIdPage getFreeLogicalRowIdPageView(BlockIo block)
short getCount()
void free(int slot)
PhysicalRowId alloc(int slot)
boolean isAllocated(int slot)
boolean isFree(int slot)
PhysicalRowId get(int slot)
int getFirstFree()
int getFirstAllocated()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |