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, getSimilarityQuery
addChildResult, getHierarchy, setHierarchy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDistanceQuery, getKNNQuery, getKNNQuery, getRangeQuery, getRangeQuery, getRKNNQuery, getRKNNQuery, getSimilarityQuery
getHierarchy, setHierarchy
private 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)
Relation
get
in interface DoubleRelation
get
in interface Relation<Double>
id
- Object IDpublic double doubleValue(DBIDRef id)
DoubleRelation
doubleValue
in interface DoubleRelation
id
- Object IDpublic void set(DBIDRef id, double val)
DoubleRelation
set
in interface DoubleRelation
id
- Object IDval
- Value@Deprecated public void insert(DBIDRef id, Double val)
ModifiableRelation
insert
in interface DoubleRelation
insert
in interface ModifiableRelation<Double>
id
- Object IDval
- Valuepublic void delete(DBIDRef id)
delete
in interface ModifiableRelation<Double>
id
- ID to deletepublic StaticDBIDs getDBIDs()
Relation
Relation.iterDBIDs()
.public DBIDIter iterDBIDs()
Relation
for(DBIDIter iter = relation.iterDBIDs(); iter.valid(); iter.advance()) {
relation.get(iter); // Get the current element
}
public int size()
Relation
public SimpleTypeInformation<Double> getDataTypeInformation()
Relation
getDataTypeInformation
in interface Relation<Double>
public String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result
protected Logging getLogger()
AbstractRelation
getLogger
in class AbstractRelation<Double>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.