
public class ReusingDBIDFactory extends SimpleDBIDFactory
| Modifier and Type | Field and Description |
|---|---|
(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 |
LOG
Logging for error messages.
|
(package private) ArrayList<IntegerDBIDRange> |
returnedAllocations
Returned range allocations
|
dynamicids, rangestartinvalidFACTORY| Constructor and Description |
|---|
ReusingDBIDFactory()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
deallocateDBIDRange(DBIDRange range)
Deallocate a static DBID range.
|
void |
deallocateSingleDBID(DBIDRef id)
Return a single DBID for reuse.
|
DBID |
generateSingleDBID()
Generate a single DBID.
|
DBIDRange |
generateStaticDBIDRange(int size)
Generate a static DBID range.
|
assignVar, compare, equal, getDBIDSerializer, getDBIDSerializerStatic, getTypeRestriction, importInteger, invalid, newArray, newArray, newArray, newDistancePair, newDistancePair, newDoubleDistanceHeap, newHashSet, newHashSet, newHashSet, newHeap, newHeap, newPair, newPair, newVar, toStringprivate static final Logging LOG
BitSet dynamicUsed
int dynamicStart
ArrayList<IntegerDBIDRange> returnedAllocations
public DBID generateSingleDBID()
DBIDFactorygenerateSingleDBID in interface DBIDFactorygenerateSingleDBID in class SimpleDBIDFactorypublic void deallocateSingleDBID(DBIDRef id)
DBIDFactorydeallocateSingleDBID in interface DBIDFactorydeallocateSingleDBID in class SimpleDBIDFactoryid - DBID to deallocatepublic DBIDRange generateStaticDBIDRange(int size)
DBIDFactorygenerateStaticDBIDRange in interface DBIDFactorygenerateStaticDBIDRange in class SimpleDBIDFactorysize - Requested sizepublic void deallocateDBIDRange(DBIDRange range)
DBIDFactorydeallocateDBIDRange in interface DBIDFactorydeallocateDBIDRange in class SimpleDBIDFactoryrange - Range to deallocate