P
- Page typepublic class LRUCachePageFileFactory<P extends Page> extends Object implements PageFileFactory<P>
Modifier and Type | Class and Description |
---|---|
static class |
LRUCachePageFileFactory.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private int |
cacheSize
Cache size, in bytes.
|
private PageFileFactory<P> |
pageFileFactory
Inner page file factory.
|
Constructor and Description |
---|
LRUCachePageFileFactory(PageFileFactory<P> pageFileFactory,
int cacheSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getPageSize()
Query the page size.
|
PageFile<P> |
newPageFile(Class<P> cls)
Make a new page file.
|
private PageFileFactory<P extends Page> pageFileFactory
private int cacheSize
public LRUCachePageFileFactory(PageFileFactory<P> pageFileFactory, int cacheSize)
pageFileFactory
- Inner page filecacheSize
- Size of cache, in bytes.public PageFile<P> newPageFile(Class<P> cls)
PageFileFactory
newPageFile
in interface PageFileFactory<P extends Page>
cls
- Page classpublic int getPageSize()
PageFileFactory
getPageSize
in interface PageFileFactory<P extends Page>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.