Package elki.index
Class AbstractRefiningIndex<O>
- java.lang.Object
-
- elki.index.AbstractRefiningIndex<O>
-
- Type Parameters:
O
- Object type
- All Implemented Interfaces:
Index
- Direct Known Subclasses:
InMemoryIDistanceIndex
,InMemoryLSHIndex.Instance
,PartialVAFile
,VAFile
public abstract class AbstractRefiningIndex<O> extends java.lang.Object implements Index
Abstract base class for Filter-refinement indexes. The number of refinements will be counted as individual page accesses.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AbstractRefiningIndex.AbstractRefiningQuery
Abstract query for this index.
-
Field Summary
Fields Modifier and Type Field Description private Counter
refinements
Refinement counter.protected Relation<O>
relation
The representation we are bound to.
-
Constructor Summary
Constructors Constructor Description AbstractRefiningIndex(Relation<O> relation)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
countRefinements(int i)
Increment the refinement counter, if in use.abstract Logging
getLogger()
Get the class logger.void
logStatistics()
Send statistics to the logger, if enabled.protected O
refine(DBID id)
Refine a given object (and count the refinement!).-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.index.Index
initialize
-
-
-
-
Method Detail
-
getLogger
public abstract Logging getLogger()
Get the class logger.- Returns:
- Logger
-
countRefinements
protected void countRefinements(int i)
Increment the refinement counter, if in use.- Parameters:
i
- Increment.
-
logStatistics
public void logStatistics()
Description copied from interface:Index
Send statistics to the logger, if enabled.Note: you must have set the logging level appropriately before initializing the index! Otherwise, the index might not have collected the desired statistics.
- Specified by:
logStatistics
in interfaceIndex
-
-