|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.database.ids.integer.SimpleDBIDFactory de.lmu.ifi.dbs.elki.database.ids.integer.ReusingDBIDFactory
public class ReusingDBIDFactory
Slightly more advanced DBID management, that allows reuse of DBIDs.
Field Summary | |
---|---|
(package private) int |
dynamicStart
Keep track of the lowest unused dynamic DBID |
(package private) BitSet |
dynamicUsed
Bit set to keep track of dynamic DBIDs |
private static Logging |
logger
Logging for error messages. |
(package private) ArrayList<IntegerDBIDRange> |
returnedAllocations
Returned range allocations |
Fields inherited from class de.lmu.ifi.dbs.elki.database.ids.integer.SimpleDBIDFactory |
---|
dynamicids, rangestart |
Fields inherited from interface de.lmu.ifi.dbs.elki.database.ids.DBIDFactory |
---|
FACTORY |
Constructor Summary | |
---|---|
ReusingDBIDFactory()
Constructor |
Method Summary | |
---|---|
void |
deallocateDBIDRange(DBIDRange range)
Deallocate a static DBID range. |
void |
deallocateSingleDBID(DBID id)
Return a single DBID for reuse. |
DBID |
generateSingleDBID()
Generate a single DBID |
DBIDRange |
generateStaticDBIDRange(int size)
Generate a static DBID range. |
Methods inherited from class de.lmu.ifi.dbs.elki.database.ids.integer.SimpleDBIDFactory |
---|
getDBIDSerializer, getDBIDSerializerStatic, getTypeRestriction, importInteger, makePair, newArray, newArray, newArray, newHashSet, newHashSet, newHashSet, newTreeSet, newTreeSet, newTreeSet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Logging logger
BitSet dynamicUsed
int dynamicStart
ArrayList<IntegerDBIDRange> returnedAllocations
Constructor Detail |
---|
public ReusingDBIDFactory()
Method Detail |
---|
public DBID generateSingleDBID()
DBIDFactory
generateSingleDBID
in interface DBIDFactory
generateSingleDBID
in class SimpleDBIDFactory
public void deallocateSingleDBID(DBID id)
DBIDFactory
deallocateSingleDBID
in interface DBIDFactory
deallocateSingleDBID
in class SimpleDBIDFactory
id
- DBID to deallocatepublic DBIDRange generateStaticDBIDRange(int size)
DBIDFactory
generateStaticDBIDRange
in interface DBIDFactory
generateStaticDBIDRange
in class SimpleDBIDFactory
size
- Requested size
public void deallocateDBIDRange(DBIDRange range)
DBIDFactory
deallocateDBIDRange
in interface DBIDFactory
deallocateDBIDRange
in class SimpleDBIDFactory
range
- Range to deallocate
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |