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 Oget(DBIDRef id)Get the representation of an object.SimpleTypeInformation<O>getDataTypeInformation()Get the data type of this representationDBIDsgetDBIDs()Get the IDs the query is defined for.java.lang.StringgetLongName()Get a long (human readable) name for the relation.DBIDIteriterDBIDs()Get an iterator access to the DBIDs.voidsetDBIDs(DBIDs ids)Set the DBIDs to use.intsize()Get the number of DBIDs.
-
-
-
Method Detail
-
get
public O get(DBIDRef id)
Description copied from interface:RelationGet the representation of an object.
-
getDBIDs
public DBIDs getDBIDs()
Description copied from interface:RelationGet the IDs the query is defined for.If possible, prefer
Relation.iterDBIDs().
-
iterDBIDs
public DBIDIter iterDBIDs()
Description copied from interface:RelationGet 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:RelationGet the number of DBIDs.
-
getDataTypeInformation
public SimpleTypeInformation<O> getDataTypeInformation()
Description copied from interface:RelationGet the data type of this representation- Specified by:
getDataTypeInformationin interfaceRelation<O>- Returns:
- Data type
-
getLongName
public java.lang.String getLongName()
Description copied from interface:RelationGet a long (human readable) name for the relation.- Specified by:
getLongNamein interfaceRelation<O>- Returns:
- Relation name
-
setDBIDs
public void setDBIDs(DBIDs ids)
Set the DBIDs to use.- Parameters:
ids- DBIDs
-
-