PageDataOverflow

Overflow data for a leaf page. Format:
  • page type: byte (0)
  • checksum: short (1-2)
  • parent page id (0 for root): int (3-6)
  • more data: next overflow page id: int (7-10)
  • last remaining size: short (7-8)
  • data (11-/9-)


Methods
static PageDataOverflow create(PageStore store, int page, int type, int parentPageId, int next, Data all, int offset, int size)
Create a new overflow page.
static PageDataOverflow create(PageStore store, int page, int type, int parentPageId, int next, Data all, int offset, int size)
Create a new overflow page.
Parameters:
store - the page store
page - the page id
type - the page type
parentPageId - the parent page id
next - the next page or 0
all - the data
offset - the offset within the data
size - the number of bytes
Returns:
the page
static Page read(PageStore store, Data data, int pageId)
Read an overflow page.
static Page read(PageStore store, Data data, int pageId)
Read an overflow page.
Parameters:
store - the page store
data - the data
pageId - the page id
Returns:
the page
boolean canRemove()
boolean canRemove()
void free()
Free this page.
void free()
Free this page.
int getMemory()
Get the estimated memory size.
int getMemory()
Get the estimated memory size.
Returns:
number of double words (4 bytes)
int getNextOverflow()
int getNextOverflow()
boolean isStream()
boolean isStream()
void moveTo(Session session, int newPos)
void moveTo(Session session, int newPos)
int readInto(Data target)
Read the data into a target buffer.
int readInto(Data target)
Read the data into a target buffer.
Parameters:
target - the target data page
Returns:
the next page, or 0 if no next page
void setParentPageId(int parent)
void setParentPageId(int parent)
String toString()
String toString()
void write()
void write()

Fields
static int START_LAST = 9
static int START_MORE = 11

START_MORE = 11

The start of the data in a overflow page that is not the last one.

START_LAST = 9

The start of the data in the last overflow page.