|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.index.tree.TreeIndexFactory<O,I>
O
- Object typeI
- Index typepublic abstract class TreeIndexFactory<O,I extends Index>
Abstract base class for tree-based indexes.
Nested Class Summary | |
---|---|
static class |
TreeIndexFactory.Parameterizer<O>
Parameterization class. |
Field Summary | |
---|---|
static OptionID |
CACHE_SIZE_ID
Parameter to specify the size of the cache in bytes, must be an integer equal to or greater than 0. |
protected long |
cacheSize
Holds the value of CACHE_SIZE_ID . |
static OptionID |
FILE_ID
Optional parameter that specifies the name of the file storing the index. |
protected String |
fileName
Holds the name of the file storing the index specified by FILE_ID ,
null if FILE_ID is not specified. |
static OptionID |
PAGE_SIZE_ID
Parameter to specify the size of a page in bytes, must be an integer greater than 0. |
protected int |
pageSize
Holds the value of PAGE_SIZE_ID . |
Constructor Summary | |
---|---|
TreeIndexFactory(String fileName,
int pageSize,
long cacheSize)
Constructor. |
Method Summary | ||
---|---|---|
abstract I |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing). |
|
protected
|
makePageFile(Class<N> cls)
Make the page file for this index. |
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.index.IndexFactory |
---|
getInputTypeRestriction |
Field Detail |
---|
public static final OptionID FILE_ID
Key: -treeindex.file
public static final OptionID PAGE_SIZE_ID
Default value: 4000
Key: -treeindex.pagesize
public static final OptionID CACHE_SIZE_ID
Default value: Integer.MAX_VALUE
Key: -treeindex.cachesize
protected String fileName
FILE_ID
,
null if FILE_ID
is not specified.
protected int pageSize
PAGE_SIZE_ID
.
protected long cacheSize
CACHE_SIZE_ID
.
Constructor Detail |
---|
public TreeIndexFactory(String fileName, int pageSize, long cacheSize)
fileName
- pageSize
- cacheSize
- Method Detail |
---|
protected <N extends Page> PageFile<N> makePageFile(Class<N> cls)
N
- page typecls
- Class information
public abstract I instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O,I extends Index>
relation
- the relation to index
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |