class ClusterOrderResult.ClusterOrderAdapter extends Object implements OrderingResult, ResultAdapter
Modifier and Type | Field and Description |
---|---|
private ArrayList<ClusterOrderEntry<D>> |
clusterOrder
Access reference.
|
Constructor and Description |
---|
ClusterOrderResult.ClusterOrderAdapter(ArrayList<ClusterOrderEntry<D>> clusterOrder)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DBIDs |
getDBIDs()
Get the full set of DBIDs this ordering 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> |
iter(DBIDs ids)
Use the cluster order to sort the given collection ids.
|
private ArrayList<ClusterOrderEntry<D extends Distance<D>>> clusterOrder
public ClusterOrderResult.ClusterOrderAdapter(ArrayList<ClusterOrderEntry<D>> clusterOrder)
clusterOrder
- order to returnpublic DBIDs getDBIDs()
OrderingResult
getDBIDs
in interface OrderingResult
public IterableIterator<DBID> iter(DBIDs ids)
OrderingResult
interface.iter
in interface OrderingResult
ids
- Collection of ids.public String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result