
class ClusterOrderResult.ReachabilityDistanceAdapter extends Object implements Relation<D>, ResultAdapter
| Modifier and Type | Field and Description |
|---|---|
private DBIDs |
dbids
DBIDs
|
private HashMap<DBID,ClusterOrderEntry<D>> |
map
Access reference.
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description |
|---|
ClusterOrderResult.ReachabilityDistanceAdapter(HashMap<DBID,ClusterOrderEntry<D>> map,
DBIDs dbids)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(DBID id)
Delete an objects values.
|
D |
get(DBID objID)
Get the representation of an object.
|
Database |
getDatabase()
Get the associated database.
|
SimpleTypeInformation<D> |
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.
|
IterableIterator<DBID> |
iterDBIDs()
Get an iterator access to the DBIDs.
|
void |
set(DBID id,
D 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 DBIDs dbids
public ClusterOrderResult.ReachabilityDistanceAdapter(HashMap<DBID,ClusterOrderEntry<D>> map, DBIDs dbids)
map - Map that stores the results.dbids - DBIDs we are defined for.public D get(DBID objID)
Relationpublic String getLongName()
ResultgetLongName in interface Resultpublic String getShortName()
ResultgetShortName in interface Resultpublic DBIDs getDBIDs()
Relationpublic IterableIterator<DBID> iterDBIDs()
Relationpublic int size()
Relationpublic Database getDatabase()
Relationnull!getDatabase in interface Relation<D extends Distance<D>>public void set(DBID id, D val)
Relationpublic void delete(DBID id)
Relationpublic SimpleTypeInformation<D> getDataTypeInformation()
RelationgetDataTypeInformation in interface Relation<D extends Distance<D>>public ResultHierarchy getHierarchy()
HierarchicalResultnull!getHierarchy in interface HierarchicalResultnull!public void setHierarchy(ResultHierarchy hierarchy)
HierarchicalResultsetHierarchy in interface HierarchicalResulthierarchy - New hierarchy