
public class StreamFromBundle extends Object implements BundleStreamSource
MultipleObjectsBundle.asStream().BundleStreamSource.Event| Modifier and Type | Field and Description |
|---|---|
(package private) MultipleObjectsBundle |
bundle
Bundle to access
|
(package private) int |
onum
Offset in bundle
|
| Constructor and Description |
|---|
StreamFromBundle(MultipleObjectsBundle bundle)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MultipleObjectsBundle |
asMultipleObjectsBundle()
Return (or collect) the stream as bundle.
|
boolean |
assignDBID(DBIDVar var)
Assign the current object ID to a
DBIDVar. |
Object |
data(int rnum)
Access a particular object and representation.
|
BundleMeta |
getMeta()
Get the current meta data.
|
boolean |
hasDBIDs()
Indicate whether the stream contains DBIDs.
|
BundleStreamSource.Event |
nextEvent()
Get the next event
|
MultipleObjectsBundle bundle
int onum
public StreamFromBundle(MultipleObjectsBundle bundle)
bundle - Existing object bundlepublic BundleMeta getMeta()
BundleStreamSourcegetMeta in interface BundleStreamSourcepublic Object data(int rnum)
BundleStreamSourcedata in interface BundleStreamSourcernum - Representation numberpublic boolean hasDBIDs()
BundleStreamSourcehasDBIDs in interface BundleStreamSourcetrue if the stream contains DBIDs.public boolean assignDBID(DBIDVar var)
BundleStreamSourceDBIDVar.assignDBID in interface BundleStreamSourcevar - Variable to assign the object id tofalse when no object id is availablepublic BundleStreamSource.Event nextEvent()
BundleStreamSourcenextEvent in interface BundleStreamSourcepublic MultipleObjectsBundle asMultipleObjectsBundle()
BundleStreamSourceasMultipleObjectsBundle in interface BundleStreamSourceCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.