O
- Object typepublic abstract class AbstractRefiningIndex<O> extends AbstractIndex<O> implements PageFileStatistics
Modifier and Type | Class and Description |
---|---|
class |
AbstractRefiningIndex.AbstractKNNQuery<D extends Distance<D>>
KNN query for this index.
|
class |
AbstractRefiningIndex.AbstractRangeQuery<D extends Distance<D>>
Range query for this index.
|
Modifier and Type | Field and Description |
---|---|
private int |
refinements
Refinement counter.
|
relation
Constructor and Description |
---|
AbstractRefiningIndex(Relation<O> relation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PageFileStatistics |
getInnerStatistics()
Get statistics for the inner page file, if present.
|
PageFileStatistics |
getPageFileStatistics()
Get the underlying page file (or a proxy), for access counts.
|
long |
getReadOperations()
Returns the read I/O-Accesses of this file.
|
long |
getWriteOperations()
Returns the write I/O-Accesses of this file.
|
protected abstract void |
initialize(Relation<O> relation,
DBIDs ids)
Initialize the index.
|
void |
insertAll(DBIDs ids)
Inserts the specified objects into this index.
|
protected O |
refine(DBID id)
Refine a given object (and count the refinement!).
|
void |
resetPageAccess()
Resets the counters for page accesses of this file and flushes the cache.
|
delete, deleteAll, getLongName, getShortName, insert
protected abstract void initialize(Relation<O> relation, DBIDs ids)
relation
- Relation to indexids
- database idsprotected O refine(DBID id)
id
- Object idpublic PageFileStatistics getPageFileStatistics()
Index
getPageFileStatistics
in interface Index
getPageFileStatistics
in class AbstractIndex<O>
public long getReadOperations()
PageFileStatistics
getReadOperations
in interface PageFileStatistics
public long getWriteOperations()
PageFileStatistics
getWriteOperations
in interface PageFileStatistics
public void resetPageAccess()
PageFileStatistics
resetPageAccess
in interface PageFileStatistics
public PageFileStatistics getInnerStatistics()
PageFileStatistics
getInnerStatistics
in interface PageFileStatistics
public void insertAll(DBIDs ids)
Index
insertAll
in interface Index
insertAll
in class AbstractIndex<O>
ids
- the objects to be inserted