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()
ObjectBundle
meta
in interface ObjectBundle
public SimpleTypeInformation<?> meta(int i)
ObjectBundle
meta
in interface ObjectBundle
i
- componentpublic int metaLength()
ObjectBundle
metaLength
in interface ObjectBundle
public java.lang.Object data(int rnum)
rnum
- representation numberpublic int dataLength()
ObjectBundle
dataLength
in interface ObjectBundle
public java.lang.Object data(int onum, int rnum)
ObjectBundle
data
in interface ObjectBundle
onum
- Object numberrnum
- Representation numberpublic boolean assignDBID(int onum, DBIDVar var)
ObjectBundle
assignDBID
in interface ObjectBundle
onum
- 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.