Quadcap Embeddable Database

com.quadcap.sql.file.PageManager Interface Reference

Inheritance diagram for com.quadcap.sql.file.PageManager:

com.quadcap.sql.file.BlockFile com.quadcap.sql.file.SubPageManager List of all members.

Detailed Description

Interface to be implemented by page (and sub-page) allocators.

Author:
Stan Bailes

Definition at line 50 of file PageManager.java.

Public Member Functions

long newPage () throws IOException
 Allocate a new page.

void freePage (long page) throws IOException
 Free a page.

int getPageSize ()
 Return this manager's page size.

Page getPage (long page) throws IOException
 Return the specified page.

Object getLock ()
 Return the file lock.


Member Function Documentation

void com.quadcap.sql.file.PageManager.freePage long  page  )  throws IOException
 

Free a page.

Parameters:
page a previously allocated page

Implemented in com.quadcap.sql.file.BlockFile, and com.quadcap.sql.file.SubPageManager.

Referenced by com.quadcap.sql.file.BlockFile.freePage(), and com.quadcap.sql.file.BlockAccess.resize().

Object com.quadcap.sql.file.PageManager.getLock  ) 
 

Return the file lock.

Implemented in com.quadcap.sql.file.BlockFile, and com.quadcap.sql.file.SubPageManager.

Referenced by com.quadcap.sql.file.BlockAccess.init().

Page com.quadcap.sql.file.PageManager.getPage long  page  )  throws IOException
 

Return the specified page.

Implemented in com.quadcap.sql.file.BlockFile, and com.quadcap.sql.file.SubPageManager.

Referenced by com.quadcap.sql.file.BlockPath.getLeafBlock(), com.quadcap.sql.file.BlockPath.getRefs(), com.quadcap.sql.file.BlockAccess.init(), com.quadcap.sql.file.BlockAccess.read(), com.quadcap.sql.file.BlockAccess.resize(), com.quadcap.sql.file.BlockPath.updatePath(), and com.quadcap.sql.file.BlockAccess.write().

int com.quadcap.sql.file.PageManager.getPageSize  ) 
 

Return this manager's page size.

Implemented in com.quadcap.sql.file.BlockFile, and com.quadcap.sql.file.SubPageManager.

Referenced by com.quadcap.sql.file.BlockAccess.bufLen(), com.quadcap.sql.file.BlockFile.getBytes(), com.quadcap.sql.file.BlockFile.getPageOffset(), com.quadcap.sql.file.BlockFile.putBytes(), and com.quadcap.sql.file.BlockFile.updateBytes().

long com.quadcap.sql.file.PageManager.newPage  )  throws IOException
 

Allocate a new page.

Implemented in com.quadcap.sql.file.BlockFile, and com.quadcap.sql.file.SubPageManager.

Referenced by com.quadcap.sql.file.BlockAccess.makeBlockRef(), com.quadcap.sql.file.BlockFile.putBytes(), and com.quadcap.sql.file.BlockAccess.resize().