
P - page typepublic abstract class AbstractPageFile<P extends Page> extends Object implements PageFile<P>
| Modifier and Type | Field and Description |
|---|---|
protected long |
readAccess
The read I/O-Access of this file.
|
protected long |
writeAccess
The write I/O-Access of this file.
|
| Constructor and Description |
|---|
AbstractPageFile()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this file.
|
long |
getReadOperations()
Returns the read I/O-Accesses of this file.
|
long |
getWriteOperations()
Returns the write I/O-Accesses of this file.
|
void |
resetPageAccess()
Resets the counters for page accesses of this file and flushes the cache.
|
protected abstract void |
writePage(int pageid,
P page)
Perform the actual page write operation.
|
int |
writePage(P page)
Writes a page into this file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, deletePage, getNextPageID, getPageSize, initialize, readPage, setNextPageID, setPageIDgetInnerStatisticsprotected long readAccess
protected long writeAccess
public final int writePage(P page)
protected abstract void writePage(int pageid,
P page)
pageid - Page idpage - Page to writepublic void close()
PageFilepublic final long getReadOperations()
PageFileStatisticsgetReadOperations in interface PageFileStatisticspublic final long getWriteOperations()
PageFileStatisticsgetWriteOperations in interface PageFileStatisticspublic final void resetPageAccess()
PageFileStatisticsresetPageAccess in interface PageFileStatistics