protected static class SOD.SODProxyScoreResult extends Object implements Relation<Double>
Modifier and Type | Field and Description |
---|---|
(package private) DBIDs |
dbids
The IDs we are defined for
|
(package private) Relation<SOD.SODModel<?>> |
models
Model result this is a proxy for.
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
SOD.SODProxyScoreResult(Relation<SOD.SODModel<?>> models,
DBIDs dbids)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(DBIDRef id)
Delete an objects values.
|
Double |
get(DBIDRef objID)
Get the representation of an object.
|
Database |
getDatabase()
Get the associated database.
|
SimpleTypeInformation<Double> |
getDataTypeInformation()
Get the data type of this representation
|
DBIDs |
getDBIDs()
Get the IDs the query is defined for.
|
ResultHierarchy |
getHierarchy()
Get the objects current hierarchy - may be
null ! |
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 |
setHierarchy(ResultHierarchy hierarchy)
Set (exchange) the hierarchy implementation (e.g. after merging!)
|
int |
size()
Get the number of DBIDs.
|
Relation<SOD.SODModel<?>> models
DBIDs dbids
public SOD.SODProxyScoreResult(Relation<SOD.SODModel<?>> models, DBIDs dbids)
models
- Models resultdbids
- IDs we are defined forpublic Double get(DBIDRef objID)
Relation
public String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result
public DBIDs getDBIDs()
Relation
public DBIDIter iterDBIDs()
Relation
for(DBIDIter iter = relation.iterDBIDs(); iter.valid(); iter.advance()) {
DBID id = iter.getDBID();
}
public Database getDatabase()
Relation
null
!getDatabase
in interface Relation<Double>
public void set(DBIDRef id, Double val)
Relation
public void delete(DBIDRef id)
Relation
public SimpleTypeInformation<Double> getDataTypeInformation()
Relation
getDataTypeInformation
in interface Relation<Double>
public int size()
Relation
public ResultHierarchy getHierarchy()
HierarchicalResult
null
!getHierarchy
in interface HierarchicalResult
null
!public void setHierarchy(ResultHierarchy hierarchy)
HierarchicalResult
setHierarchy
in interface HierarchicalResult
hierarchy
- New hierarchy