
E - entry type.public class ClusterOrderResult<E extends ClusterOrderEntry<?>> extends BasicResult implements IterableResult<E>, Relation<E>
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
ClusterOrderResult.ClusterOrderAdapter
Ordering part of the result.
|
| Modifier and Type | Field and Description |
|---|---|
private ArrayList<E> |
clusterOrder
Cluster order storage
|
(package private) Database |
database
The database.
|
(package private) DBIDs |
ids
The DBIDs we are defined for
|
private WritableDataStore<E> |
map
Map of object IDs to their cluster order entry
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description |
|---|
ClusterOrderResult(Database database,
DBIDs ids,
String name,
String shortname)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(E ce)
Add an object to the cluster order.
|
void |
delete(DBIDRef id)
Delete an objects values.
|
E |
get(DBIDRef id)
Get the representation of an object.
|
List<E> |
getClusterOrder()
Retrieve the complete cluster order.
|
Database |
getDatabase()
Get the associated database.
|
SimpleTypeInformation<E> |
getDataTypeInformation()
Get the data type of this representation
|
DBIDs |
getDBIDs()
Get the IDs the query is defined for.
|
Class<? super E> |
getEntryType()
Get the type of entries in this cluster order.
|
Iterator<E> |
iterator()
The cluster order is iterable
|
DBIDIter |
iterDBIDs()
Get an iterator access to the DBIDs.
|
void |
set(DBIDRef id,
E val)
Set an object representation.
|
int |
size()
Get the number of DBIDs.
|
getLongName, getShortNameaddChildResult, getHierarchy, setHierarchyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorgetHierarchy, setHierarchygetLongName, getShortNameprivate ArrayList<E extends ClusterOrderEntry<?>> clusterOrder
private WritableDataStore<E extends ClusterOrderEntry<?>> map
DBIDs ids
Database database
public List<E> getClusterOrder()
public Class<? super E> getEntryType()
public Iterator<E> iterator()
iterator in interface IterableResult<E extends ClusterOrderEntry<?>>iterator in interface Iterable<E extends ClusterOrderEntry<?>>public void add(E ce)
ce - Entrypublic Database getDatabase()
Relationnull!getDatabase in interface Relation<E extends ClusterOrderEntry<?>>public SimpleTypeInformation<E> getDataTypeInformation()
RelationgetDataTypeInformation in interface Relation<E extends ClusterOrderEntry<?>>public DBIDs getDBIDs()
RelationgetDBIDs in interface Relation<E extends ClusterOrderEntry<?>>public DBIDIter iterDBIDs()
Relation
for(DBIDIter iter = relation.iterDBIDs(); iter.valid(); iter.advance()) {
relation.get(iter); // Get the current element
}
iterDBIDs in interface Relation<E extends ClusterOrderEntry<?>>public int size()
Relationsize in interface Relation<E extends ClusterOrderEntry<?>>public E get(DBIDRef id)
Relationget in interface Relation<E extends ClusterOrderEntry<?>>id - Object IDpublic void set(DBIDRef id, E val)
Relationset in interface Relation<E extends ClusterOrderEntry<?>>id - Object IDval - ValueCopyright © 2014 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.