P
- page typepublic abstract class AbstractPageFile<P extends Page> extends java.lang.Object implements PageFile<P>
Modifier and Type | Field and Description |
---|---|
private Counter |
readAccess
The read I/O-Access of this file.
|
private Counter |
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.
|
protected void |
countRead()
Count a page read access.
|
protected void |
countWrite()
Count a page write access.
|
protected abstract Logging |
getLogger()
Get the class logger.
|
void |
logStatistics()
Log some statistics to the appropriate logger.
|
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, wait
clear, deletePage, getNextPageID, getPageSize, initialize, readPage, setNextPageID, setPageID
private Counter readAccess
private Counter writeAccess
protected abstract Logging getLogger()
public final int writePage(P page)
protected abstract void writePage(int pageid, P page)
pageid
- Page idpage
- Page to writepublic void close()
PageFile
public void logStatistics()
PageFile
logStatistics
in interface PageFile<P extends Page>
protected void countRead()
protected void countWrite()
Copyright © 2019 ELKI Development Team. License information.