public final class TrivialDBIDFactory extends AbstractIntegerDBIDFactory
Modifier and Type | Field and Description |
---|---|
(package private) java.util.concurrent.atomic.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, makeUnmodifiable, newArray, newArray, newArray, newDistanceDBIDList, newDistanceDBIDList, newHashSet, newHashSet, newHashSet, newHeap, newHeap, newPair, newPair, newVar, toString
java.util.concurrent.atomic.AtomicInteger next
public DBID generateSingleDBID()
DBIDFactory
public void deallocateSingleDBID(DBIDRef id)
DBIDFactory
id
- DBID to deallocatepublic 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 © 2019 ELKI Development Team. License information.