| 
 |   | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DBIDFactory

Factory interface for generating DBIDs. See FACTORY for the static
 instance to use.
| Field Summary | |
|---|---|
| static DBIDFactory | FACTORYStatic DBID factory to use. | 
| Method Summary | |
|---|---|
|  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. | 
| Field Detail | 
|---|
static final DBIDFactory FACTORY
| Method Detail | 
|---|
DBID importInteger(int id)
id - Integer ID to import
DBID generateSingleDBID()
void deallocateSingleDBID(DBID id)
id - DBID to deallocateDBIDRange generateStaticDBIDRange(int size)
size - Requested size
void deallocateDBIDRange(DBIDRange range)
range - Range to deallocate
DBIDPair makePair(DBID first,
                  DBID second)
first - first DBIDsecond - second DBID
ArrayModifiableDBIDs newArray()
HashSetModifiableDBIDs newHashSet()
TreeSetModifiableDBIDs newTreeSet()
ArrayModifiableDBIDs newArray(int size)
size - Size hint
HashSetModifiableDBIDs newHashSet(int size)
size - Size hint
TreeSetModifiableDBIDs newTreeSet(int size)
size - Size hint
ArrayModifiableDBIDs newArray(DBIDs existing)
existing - existing DBIDs to use
HashSetModifiableDBIDs newHashSet(DBIDs existing)
existing - existing DBIDs to use
TreeSetModifiableDBIDs newTreeSet(DBIDs existing)
existing - existing DBIDs to use
ByteBufferSerializer<DBID> getDBIDSerializer()
FixedSizeByteBufferSerializer<DBID> getDBIDSerializerStatic()
Class<? extends DBID> getTypeRestriction()
| 
 | 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||