Package elki.database.ids
Interface DBIDRange
-
- All Superinterfaces:
ArrayDBIDs
,ArrayStaticDBIDs
,DataStoreIDMap
,DBIDs
,StaticDBIDs
- All Known Implementing Classes:
IntegerDBIDRange
public interface DBIDRange extends ArrayStaticDBIDs, DataStoreIDMap
Static DBID range.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getOffset(DBIDRef dbid)
Get offset in the array for a particular DBID.-
Methods inherited from interface elki.database.ids.ArrayDBIDs
assignVar, binarySearch, get, iter, size, slice
-
Methods inherited from interface elki.database.datastore.DataStoreIDMap
mapDBIDToOffset
-
-
-
-
Method Detail
-
getOffset
int getOffset(DBIDRef dbid)
Get offset in the array for a particular DBID.Should satisfy
range.get(getOffset(id)) == id
andrange.getOffset(range.get(idx)) == idx
.- Parameters:
dbid
- ID to compute index for- Returns:
- index
-
-