public class DBIDView extends AbstractHierarchicalResult implements Relation<DBID>
Modifier and Type | Field and Description |
---|---|
private Database |
database
The database
|
private DBIDs |
ids
The ids object
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
DBIDView(Database database,
DBIDs ids)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(DBID id)
Delete an objects values.
|
DBID |
get(DBID id)
Get the representation of an object.
|
Database |
getDatabase()
Get the associated database.
|
SimpleTypeInformation<DBID> |
getDataTypeInformation()
Get the data type of this representation
|
DBIDs |
getDBIDs()
Get the IDs the query is defined for.
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
String |
getShortName()
A short name for the result, useful for file names.
|
IterableIterator<DBID> |
iterDBIDs()
Get an iterator access to the DBIDs.
|
void |
set(DBID id,
DBID val)
Set an object representation.
|
int |
size()
Get the number of DBIDs.
|
addChildResult, getHierarchy, setHierarchy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHierarchy, setHierarchy
private final Database database
private final DBIDs ids
public Database getDatabase()
Relation
null
!getDatabase
in interface Relation<DBID>
public DBID get(DBID id)
Relation
public void set(DBID id, DBID val)
Relation
public void delete(DBID id)
Relation
public SimpleTypeInformation<DBID> getDataTypeInformation()
Relation
getDataTypeInformation
in interface Relation<DBID>
public DBIDs getDBIDs()
Relation
public IterableIterator<DBID> iterDBIDs()
Relation
public int size()
Relation
public String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result