|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.persistent.AbstractPageFile<P>
P - page typepublic abstract class AbstractPageFile<P extends Page>

Abstract base class for the page file API for both caches and true page files (in-memory and on-disk).
| Field Summary | |
|---|---|
protected long |
readAccess
The read I/O-Access of this file. |
protected long |
writeAccess
The write I/O-Access of this file. |
| Constructor Summary | |
|---|---|
AbstractPageFile()
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.lmu.ifi.dbs.elki.persistent.PageFile |
|---|
clear, deletePage, getNextPageID, getPageSize, initialize, readPage, setNextPageID, setPageID |
| Methods inherited from interface de.lmu.ifi.dbs.elki.persistent.PageFileStatistics |
|---|
getInnerStatistics |
| Field Detail |
|---|
protected long readAccess
protected long writeAccess
| Constructor Detail |
|---|
public AbstractPageFile()
| Method Detail |
|---|
public final int writePage(P page)
writePage in interface PageFile<P extends Page>page - the page to be written
protected abstract void writePage(Integer pageid,
P page)
pageid - Page idpage - Page to writepublic void close()
PageFile
close in interface PageFile<P extends Page>public final long getReadOperations()
PageFileStatistics
getReadOperations in interface PageFileStatisticspublic final long getWriteOperations()
PageFileStatistics
getWriteOperations in interface PageFileStatisticspublic final void resetPageAccess()
PageFileStatistics
resetPageAccess in interface PageFileStatistics
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||