Package elki.database.relation
Class ProxyView<O>
- java.lang.Object
-
- elki.database.relation.ProxyView<O>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description O
get(DBIDRef id)
Get the representation of an object.SimpleTypeInformation<O>
getDataTypeInformation()
Get the data type of this representationDBIDs
getDBIDs()
Get the IDs the query is defined for.java.lang.String
getLongName()
Get a long (human readable) name for the relation.DBIDIter
iterDBIDs()
Get an iterator access to the DBIDs.void
setDBIDs(DBIDs ids)
Set the DBIDs to use.int
size()
Get the number of DBIDs.
-
-
-
Method Detail
-
get
public O get(DBIDRef id)
Description copied from interface:Relation
Get the representation of an object.
-
getDBIDs
public DBIDs getDBIDs()
Description copied from interface:Relation
Get the IDs the query is defined for.If possible, prefer
Relation.iterDBIDs()
.
-
iterDBIDs
public DBIDIter iterDBIDs()
Description copied from interface:Relation
Get an iterator access to the DBIDs.To iterate over all IDs, use the following code fragment:
for(DBIDIter iter = relation.iterDBIDs(); iter.valid(); iter.advance()) { relation.get(iter); // Get the current element }
-
size
public int size()
Description copied from interface:Relation
Get the number of DBIDs.
-
getDataTypeInformation
public SimpleTypeInformation<O> getDataTypeInformation()
Description copied from interface:Relation
Get the data type of this representation- Specified by:
getDataTypeInformation
in interfaceRelation<O>
- Returns:
- Data type
-
getLongName
public java.lang.String getLongName()
Description copied from interface:Relation
Get a long (human readable) name for the relation.- Specified by:
getLongName
in interfaceRelation<O>
- Returns:
- Relation name
-
setDBIDs
public void setDBIDs(DBIDs ids)
Set the DBIDs to use.- Parameters:
ids
- DBIDs
-
-