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(Integer 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, wait
clear, deletePage, getNextPageID, getPageSize, initialize, readPage, setNextPageID, setPageID
getInnerStatistics
protected long readAccess
protected long writeAccess
public final int writePage(P page)
protected abstract void writePage(Integer pageid, P page)
pageid
- Page idpage
- Page to writepublic void close()
PageFile
public final long getReadOperations()
PageFileStatistics
getReadOperations
in interface PageFileStatistics
public final long getWriteOperations()
PageFileStatistics
getWriteOperations
in interface PageFileStatistics
public final void resetPageAccess()
PageFileStatistics
resetPageAccess
in interface PageFileStatistics