public class SimpleDBIDFactory extends AbstractIntegerDBIDFactory
Modifier and Type | Field and Description |
---|---|
(package private) int |
dynamicids
Keep track of the smallest dynamic DBID offset not used.
|
(package private) int |
rangestart
The starting point for static DBID range allocations.
|
invalid
FACTORY
Constructor and Description |
---|
SimpleDBIDFactory()
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, toString
int dynamicids
int rangestart
public DBID generateSingleDBID()
DBIDFactory
public void deallocateSingleDBID(DBIDRef id)
DBIDFactory
id
- DBID to deallocatepublic DBIDRange generateStaticDBIDRange(int size)
DBIDFactory
size
- Requested sizepublic void deallocateDBIDRange(DBIDRange range)
DBIDFactory
range
- Range to deallocate