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, getSimilarityRangeQueryaddChildResult, getHierarchy, setHierarchyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachDouble, getforEach, getDistanceQuery, getKNNQuery, getKNNQuery, getRangeQuery, getRangeQuery, getRKNNQuery, getRKNNQuery, getSimilarityQuery, getSimilarityRangeQuery, getSimilarityRangeQuerygetHierarchy, setHierarchyprivate 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)
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, java.lang.Double val)
ModifiableRelationinsert in interface DoubleRelationinsert 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()
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<java.lang.Double> getDataTypeInformation()
RelationgetDataTypeInformation in interface Relation<java.lang.Double>public java.lang.String getLongName()
ResultgetLongName in interface Resultpublic java.lang.String getShortName()
ResultgetShortName in interface Resultprotected Logging getLogger()
AbstractRelationgetLogger in class AbstractRelation<java.lang.Double>Copyright © 2019 ELKI Development Team. License information.