public class SingleObjectBundle extends Object implements ObjectBundle
Modifier and Type | Field and Description |
---|---|
private List<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,
List<Object> contents)
Constructor.
|
SingleObjectBundle(BundleMeta meta,
List<Object> contents)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
append(SimpleTypeInformation<?> meta,
Object data)
Append a single representation to the object.
|
boolean |
assignDBID(int onum,
DBIDVar var)
Assign the object DBID to a variable
|
Object |
data(int rnum)
Get the value of the ith component.
|
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 DBID id
public SingleObjectBundle()
public SingleObjectBundle(BundleMeta meta, List<Object> contents)
meta
- Metadatacontents
- Object valuespublic SingleObjectBundle(BundleMeta meta, DBID id, List<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 Object data(int rnum)
rnum
- representation numberpublic int dataLength()
ObjectBundle
dataLength
in interface ObjectBundle
public 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, Object data)
meta
- Meta for the representationdata
- Data to appendCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.