public final class TrivialDBIDFactory extends AbstractIntegerDBIDFactory
Modifier and Type | Field and Description |
---|---|
(package private) AtomicInteger |
next
Keep track of the smallest dynamic DBID offset not used.
|
invalid
FACTORY
Constructor and Description |
---|
TrivialDBIDFactory()
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.
|
DBIDRange |
generateStaticDBIDRange(int begin,
int size)
Generate a static DBID range.
|
assignVar, compare, equal, getDBIDSerializer, getDBIDSerializerStatic, getTypeRestriction, importInteger, invalid, newArray, newArray, newArray, newDistanceDBIDList, newDistanceDBIDList, newHashSet, newHashSet, newHashSet, newHeap, newHeap, newPair, newPair, newVar, toString
AtomicInteger next
public final DBID generateSingleDBID()
DBIDFactory
public final void deallocateSingleDBID(DBIDRef id)
DBIDFactory
id
- DBID to deallocatepublic final DBIDRange generateStaticDBIDRange(int size)
DBIDFactory
size
- Requested sizepublic DBIDRange generateStaticDBIDRange(int begin, int size)
DBIDFactory
begin
- Range beginsize
- Requested sizepublic void deallocateDBIDRange(DBIDRange range)
DBIDFactory
range
- Range to deallocateCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.