
IN - Vector typeOUT - Vector typepublic class ProjectedView<IN,OUT> extends AbstractHierarchicalResult implements Relation<OUT>
| Modifier and Type | Field and Description |
|---|---|
private Relation<IN> |
inner
The wrapped representation where we get the IDs from.
|
private Projection<IN,OUT> |
projection
The projection we use.
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description |
|---|
ProjectedView(Relation<IN> inner,
Projection<IN,OUT> projection)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(DBIDRef id)
Delete an objects values.
|
OUT |
get(DBIDRef id)
Get the representation of an object.
|
Database |
getDatabase()
Get the associated database.
|
SimpleTypeInformation<OUT> |
getDataTypeInformation()
Get the data type of this representation
|
DBIDs |
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,
OUT val)
Set an object representation.
|
int |
size()
Get the number of DBIDs.
|
addChildResult, getHierarchy, setHierarchyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHierarchy, setHierarchyprivate Projection<IN,OUT> projection
public ProjectedView(Relation<IN> inner, Projection<IN,OUT> projection)
inner - Inner relationprojection - Projection functionpublic String getLongName()
ResultgetLongName in interface Resultpublic String getShortName()
ResultgetShortName in interface Resultpublic Database getDatabase()
Relationnull!getDatabase in interface Relation<OUT>public OUT get(DBIDRef id)
Relationpublic void set(DBIDRef id, OUT val)
Relationpublic void delete(DBIDRef id)
Relationpublic SimpleTypeInformation<OUT> getDataTypeInformation()
RelationgetDataTypeInformation in interface Relation<OUT>public DBIDs getDBIDs()
Relationpublic DBIDIter iterDBIDs()
Relation
for(DBIDIter iter = relation.iterDBIDs(); iter.valid(); iter.advance()) {
DBID id = iter.getDBID();
}