de.lmu.ifi.dbs.elki.database.relation
Interface Relation<O>

Type Parameters:
O - Object type
All Superinterfaces:
DatabaseQuery, HierarchicalResult, Result
All Known Implementing Classes:
ClusterOrderResult.PredecessorAdapter, ClusterOrderResult.ReachabilityDistanceAdapter, ConvertToStringView, DBIDView, MaterializedRelation, ProxyView, SOD.SODProxyScoreResult

public interface Relation<O>
extends DatabaseQuery, HierarchicalResult

An object representation from a database


Field Summary
 
Fields inherited from interface de.lmu.ifi.dbs.elki.database.query.DatabaseQuery
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
 
Method Summary
 void delete(DBID id)
          Delete an objects values.
 O get(DBID id)
          Get the representation of an object.
 Database getDatabase()
          Get the associated database.
 SimpleTypeInformation<O> getDataTypeInformation()
          Get the data type of this representation
 DBIDs getDBIDs()
          Get the IDs the query is defined for.
 IterableIterator<DBID> iterDBIDs()
          Get an iterator access to the DBIDs.
 void set(DBID id, O val)
          Set an object representation.
 int size()
          Get the number of DBIDs.
 
Methods inherited from interface de.lmu.ifi.dbs.elki.result.HierarchicalResult
getHierarchy, setHierarchy
 
Methods inherited from interface de.lmu.ifi.dbs.elki.result.Result
getLongName, getShortName
 

Method Detail

getDatabase

Database getDatabase()
Get the associated database. Note: in some situations, this might be null!

Returns:
Database

get

O get(DBID id)
Get the representation of an object.

Parameters:
id - Object ID
Returns:
object instance

set

void set(DBID id,
         O val)
Set an object representation.

Parameters:
id - Object ID
val - Value

delete

void delete(DBID id)
Delete an objects values.

Parameters:
id - ID to delete

getDataTypeInformation

SimpleTypeInformation<O> getDataTypeInformation()
Get the data type of this representation

Returns:
Data type

getDBIDs

DBIDs getDBIDs()
Get the IDs the query is defined for.

Returns:
IDs this is defined for

iterDBIDs

IterableIterator<DBID> iterDBIDs()
Get an iterator access to the DBIDs.

Returns:
iterator for the DBIDs.

size

int size()
Get the number of DBIDs.

Returns:
Size

Release 0.4.0 (2011-09-20_1324)