|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult
de.lmu.ifi.dbs.elki.database.relation.ProxyView<O>
O - Object typepublic class ProxyView<O>

A virtual partitioning of the database. For the accepted DBIDs, access is passed on to the wrapped representation.
| Field Summary | |
|---|---|
private Database |
database
Our database |
private DBIDs |
idview
The DBIDs we contain |
private Relation<O> |
inner
The wrapped representation where we get the IDs from. |
| 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 |
| Constructor Summary | |
|---|---|
ProxyView(Database database,
DBIDs idview,
Relation<O> inner)
Constructor. |
|
| 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. |
|
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. |
|
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. |
|
static
|
wrap(Database database,
DBIDs idview,
Relation<O> inner)
Constructor-like static method. |
|
| Methods inherited from class de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult |
|---|
addChildResult, getHierarchy, setHierarchy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.lmu.ifi.dbs.elki.result.HierarchicalResult |
|---|
getHierarchy, setHierarchy |
| Field Detail |
|---|
private final Database database
private final DBIDs idview
private final Relation<O> inner
| Constructor Detail |
|---|
public ProxyView(Database database,
DBIDs idview,
Relation<O> inner)
idview - Ids to exposeinner - Inner representation| Method Detail |
|---|
public Database getDatabase()
Relationnull!
getDatabase in interface Relation<O>
public static <O> ProxyView<O> wrap(Database database,
DBIDs idview,
Relation<O> inner)
O - Object typeidview - Ids to exposeinner - Inner representation
public O get(DBID id)
Relation
get in interface Relation<O>id - Object ID
public void set(DBID id,
O val)
Relation
set in interface Relation<O>id - Object IDval - Valuepublic void delete(DBID id)
Relation
delete in interface Relation<O>id - ID to deletepublic DBIDs getDBIDs()
Relation
getDBIDs in interface Relation<O>public IterableIterator<DBID> iterDBIDs()
Relation
iterDBIDs in interface Relation<O>public int size()
Relation
size in interface Relation<O>public SimpleTypeInformation<O> getDataTypeInformation()
Relation
getDataTypeInformation in interface Relation<O>public String getLongName()
Result
getLongName in interface Resultpublic String getShortName()
Result
getShortName in interface Result
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||