
O - Object typepublic class ProxyView<O> extends AbstractHierarchicalResult implements Relation<O>
| Modifier and Type | Field and Description |
|---|---|
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.
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Constructor and Description |
|---|
ProxyView(Database database,
DBIDs idview,
Relation<O> inner)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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 <O> ProxyView<O> |
wrap(Database database,
DBIDs idview,
Relation<O> inner)
Constructor-like static method.
|
addChildResult, getHierarchy, setHierarchyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHierarchy, setHierarchyprivate final Database database
private final DBIDs idview
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 representationpublic O get(DBID id)
Relationpublic void set(DBID id, O val)
Relationpublic void delete(DBID id)
Relationpublic DBIDs getDBIDs()
Relationpublic IterableIterator<DBID> iterDBIDs()
Relationpublic int size()
Relationpublic SimpleTypeInformation<O> getDataTypeInformation()
RelationgetDataTypeInformation in interface Relation<O>public String getLongName()
ResultgetLongName in interface Resultpublic String getShortName()
ResultgetShortName in interface Result