public interface DBIDFactory
FACTORY
for the static
instance to use.Modifier and Type | Field and Description |
---|---|
static DBIDFactory |
FACTORY
Static DBID factory to use.
|
Modifier and Type | Method and Description |
---|---|
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.
|
ByteBufferSerializer<DBID> |
getDBIDSerializer()
Get a serializer for DBIDs
|
FixedSizeByteBufferSerializer<DBID> |
getDBIDSerializerStatic()
Get a serializer for DBIDs with static size
|
Class<? extends DBID> |
getTypeRestriction()
Get type restriction
|
DBID |
importInteger(int id)
Import an integer ID
|
DBIDPair |
makePair(DBID first,
DBID second)
Make a DBID pair from two existing DBIDs.
|
ArrayModifiableDBIDs |
newArray()
Make a new (modifiable) array of DBIDs.
|
ArrayModifiableDBIDs |
newArray(DBIDs existing)
Make a new (modifiable) array of DBIDs.
|
ArrayModifiableDBIDs |
newArray(int size)
Make a new (modifiable) array of DBIDs.
|
HashSetModifiableDBIDs |
newHashSet()
Make a new (modifiable) hash set of DBIDs.
|
HashSetModifiableDBIDs |
newHashSet(DBIDs existing)
Make a new (modifiable) hash set of DBIDs.
|
HashSetModifiableDBIDs |
newHashSet(int size)
Make a new (modifiable) hash set of DBIDs.
|
TreeSetModifiableDBIDs |
newTreeSet()
Make a new (modifiable) tree set of DBIDs.
|
TreeSetModifiableDBIDs |
newTreeSet(DBIDs existing)
Make a new (modifiable) tree set of DBIDs.
|
TreeSetModifiableDBIDs |
newTreeSet(int size)
Make a new (modifiable) tree set of DBIDs.
|
static final DBIDFactory FACTORY
DBID importInteger(int id)
id
- Integer ID to importDBID generateSingleDBID()
void deallocateSingleDBID(DBID id)
id
- DBID to deallocateDBIDRange generateStaticDBIDRange(int size)
size
- Requested sizevoid deallocateDBIDRange(DBIDRange range)
range
- Range to deallocateDBIDPair makePair(DBID first, DBID second)
first
- first DBIDsecond
- second DBIDArrayModifiableDBIDs newArray()
HashSetModifiableDBIDs newHashSet()
TreeSetModifiableDBIDs newTreeSet()
ArrayModifiableDBIDs newArray(int size)
size
- Size hintHashSetModifiableDBIDs newHashSet(int size)
size
- Size hintTreeSetModifiableDBIDs newTreeSet(int size)
size
- Size hintArrayModifiableDBIDs newArray(DBIDs existing)
existing
- existing DBIDs to useHashSetModifiableDBIDs newHashSet(DBIDs existing)
existing
- existing DBIDs to useTreeSetModifiableDBIDs newTreeSet(DBIDs existing)
existing
- existing DBIDs to useByteBufferSerializer<DBID> getDBIDSerializer()
FixedSizeByteBufferSerializer<DBID> getDBIDSerializerStatic()