de.lmu.ifi.dbs.elki.database.datastore
Class RangeIDMap

java.lang.Object
  extended by 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.


Field Summary
(package private)  DBIDRange range
          Start offset
 
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
 

Field Detail

range

final DBIDRange range
Start offset

Constructor Detail

RangeIDMap

public RangeIDMap(DBIDRange range)
Constructor from a static DBID range allocation.

Parameters:
range - DBID range to use
Method Detail

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

Release 0.4.0 (2011-09-20_1324)