Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.result
Class MetadataResult

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.result.MetadataResult
All Implemented Interfaces:
Result

public class MetadataResult
extends Object
implements Result

Result to store meta data.

Author:
Erich Schubert

Field Summary
private  AnyMap<AssociationID<?>> data
          Data store.
 
Constructor Summary
MetadataResult()
          Constructor.
 
Method Summary
<M> M
getAssociation(AssociationID<M> meta)
          Get a meta data object.
<M> M
getAssociationGenerics(AssociationID<?> meta)
          Get a meta data object, with weaker compile time type checking.
 Collection<AssociationID<?>> getAssociations()
          Get stored metadata associations.
<M> void
setAssociation(AssociationID<M> meta, M value)
          Put meta data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

private AnyMap<AssociationID<?>> data
Data store.

Constructor Detail

MetadataResult

public MetadataResult()
Constructor.

Method Detail

setAssociation

public <M> void setAssociation(AssociationID<M> meta,
                               M value)
Put meta data.

Type Parameters:
M - data class
Parameters:
meta - key
value - data

getAssociation

public <M> M getAssociation(AssociationID<M> meta)
Get a meta data object.

Type Parameters:
M - data class
Parameters:
meta - Key
Returns:
stored meta data or null

getAssociationGenerics

public <M> M getAssociationGenerics(AssociationID<?> meta)
Get a meta data object, with weaker compile time type checking. Note that in this version, it is not verified that the restriction class actually satisfies the return type M.

Type Parameters:
M - data class
Parameters:
meta - Key
Returns:
stored meta data or null

getAssociations

public Collection<AssociationID<?>> getAssociations()
Get stored metadata associations.

Returns:
Stored keys

Release 0.2 (2009-07-06_1820)