IN
- Vector typeOUT
- Vector typepublic class ProjectedView<IN,OUT> extends AbstractRelation<OUT>
Modifier and Type | Field and Description |
---|---|
private Relation<? extends IN> |
inner
The wrapped representation where we get the IDs from.
|
private static Logging |
LOG
Class logger
|
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<? extends IN> inner,
Projection<IN,OUT> projection)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
OUT |
get(DBIDRef id)
Get the representation of an object.
|
SimpleTypeInformation<OUT> |
getDataTypeInformation()
Get the data type of this representation
|
DBIDs |
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.
|
DBIDIter |
iterDBIDs()
Get an iterator access to the DBIDs.
|
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
forEach, getKNNQuery, getRangeQuery, getRKNNQuery, getSimilarityRangeQuery
getHierarchy, setHierarchy
private static final Logging LOG
private final Relation<? extends IN> inner
private Projection<IN,OUT> projection
public ProjectedView(Relation<? extends IN> inner, Projection<IN,OUT> projection)
inner
- Inner relationprojection
- Projection functionpublic java.lang.String getLongName()
Result
public java.lang.String getShortName()
Result
public OUT get(DBIDRef id)
Relation
id
- Object IDpublic SimpleTypeInformation<OUT> getDataTypeInformation()
Relation
public DBIDs 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
protected Logging getLogger()
AbstractRelation
getLogger
in class AbstractRelation<OUT>
Copyright © 2019 ELKI Development Team. License information.