public class MaterializedDoubleRelation extends AbstractHierarchicalResult implements DoubleRelation
Modifier and Type | Field and Description |
---|---|
private DoubleDataStore |
content
Map to hold the objects of the database.
|
private Database |
database
Our database
|
private StaticDBIDs |
ids
The DBIDs this is supposed to be defined for.
|
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(Database database,
DBIDs ids)
Constructor.
|
MaterializedDoubleRelation(Database database,
DBIDs ids,
String name)
Constructor.
|
MaterializedDoubleRelation(Database database,
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.
|
Database |
getDatabase()
Get the associated database.
|
SimpleTypeInformation<Double> |
getDataTypeInformation()
Get the data type of this representation
|
StaticDBIDs |
getDBIDs()
Get the IDs the query is defined for.
|
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.
|
DBIDIter |
iterDBIDs()
Get an iterator access to the DBIDs.
|
void |
set(DBIDRef id,
double val)
Set an object representation.
|
void |
set(DBIDRef id,
Double val)
Deprecated.
|
int |
size()
Get the number of DBIDs.
|
addChildResult, getHierarchy, setHierarchy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHierarchy, setHierarchy
private final Database database
private final DoubleDataStore content
private final StaticDBIDs ids
private String name
private String shortname
public MaterializedDoubleRelation(Database database, DBIDs ids)
database
- Databaseids
- IDspublic MaterializedDoubleRelation(Database database, DBIDs ids, String name)
database
- Databaseids
- IDsname
- Namepublic MaterializedDoubleRelation(Database database, DBIDs ids, String name, DoubleDataStore content)
database
- Databaseids
- IDsname
- Namecontent
- Contentpublic MaterializedDoubleRelation(String name, String shortname, DoubleDataStore content, DBIDs ids)
name
- Nameshortname
- Short name of the resultcontent
- Contentids
- IDspublic Database getDatabase()
Relation
null
!getDatabase
in interface Relation<Double>
@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 set(DBIDRef id, Double val)
Relation
set
in interface DoubleRelation
set
in interface Relation<Double>
id
- Object IDval
- Valuepublic void delete(DBIDRef id)
public StaticDBIDs getDBIDs()
Relation
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
Copyright © 2014 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.