class ClusterOrderResult.PredecessorAdapter extends Object implements Relation<DBID>, ResultAdapter
Modifier and Type | Field and Description |
---|---|
private DBIDs |
dbids
Database IDs
|
private DataStore<ClusterOrderEntry<D>> |
map
Access reference.
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
ClusterOrderResult.PredecessorAdapter(DataStore<ClusterOrderEntry<D>> map,
DBIDs dbids)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(DBIDRef id)
Delete an objects values.
|
DBID |
get(DBIDRef objID)
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.
|
ResultHierarchy |
getHierarchy()
Get the objects current hierarchy - may be
null ! |
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.
|
DBIDIter |
iterDBIDs()
Get an iterator access to the DBIDs.
|
void |
set(DBIDRef id,
DBID val)
Set an object representation.
|
void |
setHierarchy(ResultHierarchy hierarchy)
Set (exchange) the hierarchy implementation (e.g. after merging!)
|
int |
size()
Get the number of DBIDs.
|
private DataStore<ClusterOrderEntry<D extends Distance<D>>> map
private DBIDs dbids
public ClusterOrderResult.PredecessorAdapter(DataStore<ClusterOrderEntry<D>> map, DBIDs dbids)
map
- Map that stores the results.dbids
- DBIDs we are defined forpublic DBID get(DBIDRef objID)
Relation
public String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result
public DBIDs getDBIDs()
Relation
public DBIDIter iterDBIDs()
Relation
for(DBIDIter iter = relation.iterDBIDs(); iter.valid(); iter.advance()) {
DBID id = iter.getDBID();
}
public int size()
Relation
public Database getDatabase()
Relation
null
!getDatabase
in interface Relation<DBID>
public void set(DBIDRef id, DBID val)
Relation
public void delete(DBIDRef id)
Relation
public SimpleTypeInformation<DBID> getDataTypeInformation()
Relation
getDataTypeInformation
in interface Relation<DBID>
public ResultHierarchy getHierarchy()
HierarchicalResult
null
!getHierarchy
in interface HierarchicalResult
null
!public void setHierarchy(ResultHierarchy hierarchy)
HierarchicalResult
setHierarchy
in interface HierarchicalResult
hierarchy
- New hierarchy