public class MaterializedDoubleRelation extends AbstractRelation<java.lang.Double> implements DoubleRelation
DoubleRelation.Consumer
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 java.lang.String |
name
The relation name.
|
private java.lang.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,
java.lang.String name)
Constructor.
|
MaterializedDoubleRelation(DBIDs ids,
java.lang.String name,
DoubleDataStore content)
Constructor.
|
MaterializedDoubleRelation(java.lang.String name,
java.lang.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.
|
SimpleTypeInformation<java.lang.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.
|
java.lang.String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
java.lang.String |
getShortName()
A short name for the result, useful for file names.
|
void |
insert(DBIDRef id,
java.lang.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, getRangeQuery, getRKNNQuery, getSimilarityQuery, getSimilarityRangeQuery
addChildResult, getHierarchy, setHierarchy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachDouble, get
forEach, getDistanceQuery, getKNNQuery, getKNNQuery, getRangeQuery, getRangeQuery, getRKNNQuery, getRKNNQuery, getSimilarityQuery, getSimilarityRangeQuery, getSimilarityRangeQuery
getHierarchy, setHierarchy
private static final Logging LOG
private final DoubleDataStore content
private final StaticDBIDs ids
private java.lang.String name
private java.lang.String shortname
public MaterializedDoubleRelation(DBIDs ids)
ids
- IDspublic MaterializedDoubleRelation(DBIDs ids, java.lang.String name)
ids
- IDsname
- Namepublic MaterializedDoubleRelation(DBIDs ids, java.lang.String name, DoubleDataStore content)
ids
- IDsname
- Namecontent
- Contentpublic MaterializedDoubleRelation(java.lang.String name, java.lang.String shortname, DoubleDataStore content, DBIDs ids)
name
- Nameshortname
- Short name of the resultcontent
- Contentids
- IDspublic 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, java.lang.Double val)
ModifiableRelation
insert
in interface DoubleRelation
insert
in interface ModifiableRelation<java.lang.Double>
id
- Object IDval
- Valuepublic void delete(DBIDRef id)
delete
in interface ModifiableRelation<java.lang.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<java.lang.Double> getDataTypeInformation()
Relation
getDataTypeInformation
in interface Relation<java.lang.Double>
public java.lang.String getLongName()
Result
getLongName
in interface Result
public java.lang.String getShortName()
Result
getShortName
in interface Result
protected Logging getLogger()
AbstractRelation
getLogger
in class AbstractRelation<java.lang.Double>
Copyright © 2019 ELKI Development Team. License information.