|
||||||||||
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.AbstractIndex<O>
O
- Object type stored in the indexpublic abstract class AbstractIndex<O>
Abstract base class for indexes with some implementation defaults.
Field Summary | |
---|---|
protected Relation<O> |
relation
The representation we are bound to. |
Constructor Summary | |
---|---|
AbstractIndex(Relation<O> relation)
Constructor. |
Method Summary | |
---|---|
boolean |
delete(DBID id)
Deletes the specified object from this index. |
void |
deleteAll(DBIDs id)
Deletes the specified objects from this index. |
abstract String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus. |
PageFileStatistics |
getPageFileStatistics()
Get the underlying page file (or a proxy), for access counts. |
abstract String |
getShortName()
A short name for the result, useful for file names. |
void |
insert(DBID id)
Inserts the specified object into this index. |
void |
insertAll(DBIDs ids)
Inserts the specified objects into this index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Relation<O> relation
Constructor Detail |
---|
public AbstractIndex(Relation<O> relation)
relation
- Relation indexedMethod Detail |
---|
public abstract String getLongName()
Result
getLongName
in interface Result
public abstract String getShortName()
Result
getShortName
in interface Result
public PageFileStatistics getPageFileStatistics()
Index
getPageFileStatistics
in interface Index
public void insert(DBID id)
Index
insert
in interface Index
id
- the object to be insertedpublic void insertAll(DBIDs ids)
Index
insertAll
in interface Index
ids
- the objects to be insertedpublic boolean delete(DBID id)
Index
delete
in interface Index
id
- Object to remove
public void deleteAll(DBIDs id)
Index
deleteAll
in interface Index
id
- Objects to remove
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |