public class ConvertToStringView extends AbstractHierarchicalResult implements Relation<String>
Modifier and Type | Field and Description |
---|---|
(package private) Relation<?> |
existing
The database we use
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
ConvertToStringView(Relation<?> existing)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(DBIDRef id)
Delete an objects values.
|
String |
get(DBIDRef id)
Get the representation of an object.
|
Database |
getDatabase()
Get the associated database.
|
SimpleTypeInformation<String> |
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.
|
DBIDIter |
iterDBIDs()
Get an iterator access to the DBIDs.
|
void |
set(DBIDRef id,
String val)
Set an object representation.
|
int |
size()
Get the number of DBIDs.
|
addChildResult, getHierarchy, setHierarchy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHierarchy, setHierarchy
final Relation<?> existing
public ConvertToStringView(Relation<?> existing)
existing
- Existing representationpublic Database getDatabase()
Relation
null
!getDatabase
in interface Relation<String>
public String get(DBIDRef id)
Relation
public void set(DBIDRef id, String val)
Relation
public void delete(DBIDRef id)
Relation
public DBIDs getDBIDs()
Relation
public DBIDIter iterDBIDs()
Relation
for(DBIDIter iter = relation.iterDBIDs(); iter.valid(); iter.advance()) {
DBID id = iter.getDBID();
}
public int size()
Relation
public SimpleTypeInformation<String> getDataTypeInformation()
Relation
getDataTypeInformation
in interface Relation<String>
public String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result