public class SingleObjectBundle extends java.lang.Object implements ObjectBundle
| Modifier and Type | Field and Description | 
|---|---|
private java.util.List<java.lang.Object> | 
contents
Storing the real contents. 
 | 
private DBID | 
id
Object ID 
 | 
private BundleMeta | 
meta
Store the meta data. 
 | 
| Constructor and Description | 
|---|
SingleObjectBundle()
Constructor. 
 | 
SingleObjectBundle(BundleMeta meta,
                  DBID id,
                  java.util.List<java.lang.Object> contents)
Constructor. 
 | 
SingleObjectBundle(BundleMeta meta,
                  java.util.List<java.lang.Object> contents)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
append(SimpleTypeInformation<?> meta,
      java.lang.Object data)
Append a single representation to the object. 
 | 
boolean | 
assignDBID(int onum,
          DBIDVar var)
Assign the object DBID to a variable 
 | 
java.lang.Object | 
data(int rnum)
Get the value of the ith component. 
 | 
java.lang.Object | 
data(int onum,
    int rnum)
Access a particular object and representation. 
 | 
int | 
dataLength()
Get the number of objects contained. 
 | 
BundleMeta | 
meta()
Access the meta data. 
 | 
SimpleTypeInformation<?> | 
meta(int i)
Access the meta data. 
 | 
int | 
metaLength()
Get the metadata length. 
 | 
private BundleMeta meta
private java.util.List<java.lang.Object> contents
private DBID id
public SingleObjectBundle()
public SingleObjectBundle(BundleMeta meta, java.util.List<java.lang.Object> contents)
meta - Metadatacontents - Object valuespublic SingleObjectBundle(BundleMeta meta, DBID id, java.util.List<java.lang.Object> contents)
meta - Metadataid - ID of objectcontents - Object valuespublic BundleMeta meta()
ObjectBundlemeta in interface ObjectBundlepublic SimpleTypeInformation<?> meta(int i)
ObjectBundlemeta in interface ObjectBundlei - componentpublic int metaLength()
ObjectBundlemetaLength in interface ObjectBundlepublic java.lang.Object data(int rnum)
rnum - representation numberpublic int dataLength()
ObjectBundledataLength in interface ObjectBundlepublic java.lang.Object data(int onum,
                             int rnum)
ObjectBundledata in interface ObjectBundleonum - Object numberrnum - Representation numberpublic boolean assignDBID(int onum,
                          DBIDVar var)
ObjectBundleassignDBID in interface ObjectBundleonum - Object numbervar - Variablefalse if there was no predefined DBID.public void append(SimpleTypeInformation<?> meta, java.lang.Object data)
meta - Meta for the representationdata - Data to appendCopyright © 2019 ELKI Development Team. License information.