O
- Object typeI
- Index typepublic abstract class TreeIndexFactory<O,I extends Index> extends Object implements IndexFactory<O,I>
Modifier and Type | Class and Description |
---|---|
static class |
TreeIndexFactory.Parameterizer<O>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
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
|
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 and Description |
---|
TreeIndexFactory(String fileName,
int pageSize,
long cacheSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract I |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
|
protected <N extends ExternalizablePage> |
makePageFile(Class<N> cls)
Make the page file for this index.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputTypeRestriction
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
protected int pageSize
PAGE_SIZE_ID
.protected long cacheSize
CACHE_SIZE_ID
.public TreeIndexFactory(String fileName, int pageSize, long cacheSize)
fileName
- pageSize
- cacheSize
- protected <N extends ExternalizablePage> PageFile<N> makePageFile(Class<N> cls)
N
- page typecls
- Class informationpublic abstract I instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O,I extends Index>
relation
- the relation to index