global
Class Page

java.lang.Object
  extended by global.Page
All Implemented Interfaces:
GlobalConst

public class Page
extends java.lang.Object
implements GlobalConst

class Page


Field Summary
 
Fields inherited from interface global.GlobalConst
EMPTY_SLOT, FIRST_PAGEID, INVALID_PAGEID, MAX_COLSIZE, MAX_TUPSIZE, NAME_MAXLEN, PAGE_SIZE, PIN_DISKIO, PIN_MEMCPY, UNPIN_CLEAN, UNPIN_DIRTY
 
Constructor Summary
Page()
          default constructor
Page(byte[] apage)
          Constructor of class Page
 
Method Summary
 void copyPage(Page page)
          Copies the contents of the given page's buffer into this page's buffer.
 byte[] getData()
          Get accessor for the data byte array.
 byte[] getpage()
          return the data byte array
 void setpage(byte[] array)
          set the page with the given byte array
 void setPage(Page page)
          Sets this page's data array to share the given page's data array.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Page

public Page()
default constructor


Page

public Page(byte[] apage)
Constructor of class Page

Method Detail

getpage

public byte[] getpage()
return the data byte array

Returns:
the byte array of the page

setpage

public void setpage(byte[] array)
set the page with the given byte array

Parameters:
array - a byte array of page size

setPage

public void setPage(Page page)
Sets this page's data array to share the given page's data array.


copyPage

public void copyPage(Page page)
Copies the contents of the given page's buffer into this page's buffer.


getData

public byte[] getData()
Get accessor for the data byte array.