de.lmu.ifi.dbs.elki.database.datastore
Class RangeIDMap
java.lang.Object
de.lmu.ifi.dbs.elki.database.datastore.RangeIDMap
- All Implemented Interfaces:
- DataStoreIDMap
public class RangeIDMap
- extends Object
- implements DataStoreIDMap
Mapping a static DBID range to storage IDs.
Constructor Summary |
RangeIDMap(DBIDRange range)
Constructor from a static DBID range allocation. |
Method Summary |
int |
map(DBID dbid)
Map a DBID to a database id. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
range
final DBIDRange range
- Start offset
RangeIDMap
public RangeIDMap(DBIDRange range)
- Constructor from a static DBID range allocation.
- Parameters:
range
- DBID range to use
map
public int map(DBID dbid)
- Description copied from interface:
DataStoreIDMap
- Map a DBID to a database id.
- Specified by:
map
in interface DataStoreIDMap
- Parameters:
dbid
- DBID
- Returns:
- record id
id >= 0