
public class MaterializedDoubleRelation extends AbstractRelation<Double> implements DoubleRelation
| Modifier and Type | Field and Description |
|---|---|
private DoubleDataStore |
content
Map to hold the objects of the database.
|
private StaticDBIDs |
ids
The DBIDs this is supposed to be defined for.
|
private static Logging |
LOG
Class logger.
|
private String |
name
The relation name.
|
private String |
shortname
The relation name (short version)
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description |
|---|
MaterializedDoubleRelation(DBIDs ids)
Constructor.
|
MaterializedDoubleRelation(DBIDs ids,
String name)
Constructor.
|
MaterializedDoubleRelation(DBIDs ids,
String name,
DoubleDataStore content)
Constructor.
|
MaterializedDoubleRelation(String name,
String shortname,
DoubleDataStore content,
DBIDs ids)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(DBIDRef id)
Delete an objects values.
|
double |
doubleValue(DBIDRef id)
Get the representation of an object.
|
Double |
get(DBIDRef id)
Deprecated.
|
SimpleTypeInformation<Double> |
getDataTypeInformation()
Get the data type of this representation
|
StaticDBIDs |
getDBIDs()
Get the IDs the query is defined for.
|
protected Logging |
getLogger()
Get the class logger.
|
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.
|
void |
insert(DBIDRef id,
Double val)
Deprecated.
|
DBIDIter |
iterDBIDs()
Get an iterator access to the DBIDs.
|
void |
set(DBIDRef id,
double val)
Set an object representation.
|
int |
size()
Get the number of DBIDs.
|
getDistanceQuery, getKNNQuery, getKNNQuery, getRangeQuery, getRangeQuery, getRKNNQuery, getRKNNQuery, getSimilarityQueryaddChildResult, getHierarchy, setHierarchyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDistanceQuery, getKNNQuery, getKNNQuery, getRangeQuery, getRangeQuery, getRKNNQuery, getRKNNQuery, getSimilarityQuerygetHierarchy, setHierarchyprivate static final Logging LOG
private final DoubleDataStore content
private final StaticDBIDs ids
private String name
private String shortname
public MaterializedDoubleRelation(DBIDs ids)
ids - IDspublic MaterializedDoubleRelation(DBIDs ids, String name)
ids - IDsname - Namepublic MaterializedDoubleRelation(DBIDs ids, String name, DoubleDataStore content)
ids - IDsname - Namecontent - Contentpublic MaterializedDoubleRelation(String name, String shortname, DoubleDataStore content, DBIDs ids)
name - Nameshortname - Short name of the resultcontent - Contentids - IDs@Deprecated public Double get(DBIDRef id)
Relationget in interface DoubleRelationget in interface Relation<Double>id - Object IDpublic double doubleValue(DBIDRef id)
DoubleRelationdoubleValue in interface DoubleRelationid - Object IDpublic void set(DBIDRef id, double val)
DoubleRelationset in interface DoubleRelationid - Object IDval - Value@Deprecated public void insert(DBIDRef id, Double val)
ModifiableRelationinsert in interface DoubleRelationinsert in interface ModifiableRelation<Double>id - Object IDval - Valuepublic void delete(DBIDRef id)
delete in interface ModifiableRelation<Double>id - ID to deletepublic StaticDBIDs getDBIDs()
RelationRelation.iterDBIDs().public DBIDIter iterDBIDs()
Relation
for(DBIDIter iter = relation.iterDBIDs(); iter.valid(); iter.advance()) {
relation.get(iter); // Get the current element
}
public int size()
Relationpublic SimpleTypeInformation<Double> getDataTypeInformation()
RelationgetDataTypeInformation in interface Relation<Double>public String getLongName()
ResultgetLongName in interface Resultpublic String getShortName()
ResultgetShortName in interface Resultprotected Logging getLogger()
AbstractRelationgetLogger in class AbstractRelation<Double>Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.