public abstract class AbstractStreamFilter extends java.lang.Object implements StreamFilter
BundleStreamSource.Event
Modifier and Type | Field and Description |
---|---|
protected BundleStreamSource |
source
Data source
|
Constructor and Description |
---|
AbstractStreamFilter() |
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 . |
MultipleObjectsBundle |
filter(MultipleObjectsBundle objects)
Filter a set of object packages.
|
boolean |
hasDBIDs()
Indicate whether the stream contains DBIDs.
|
BundleStreamSource |
init(BundleStreamSource source)
Connect to the previous stream.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
data, getMeta, nextEvent
protected BundleStreamSource source
public MultipleObjectsBundle filter(MultipleObjectsBundle objects)
ObjectFilter
filter
in interface ObjectFilter
objects
- Object to filterpublic BundleStreamSource init(BundleStreamSource source)
StreamFilter
init
in interface StreamFilter
source
- Stream sourcepublic boolean hasDBIDs()
BundleStreamSource
hasDBIDs
in interface BundleStreamSource
true
if the stream contains DBIDs.public boolean assignDBID(DBIDVar var)
BundleStreamSource
DBIDVar
.assignDBID
in interface BundleStreamSource
var
- Variable to assign the object id tofalse
when no object id is availablepublic MultipleObjectsBundle asMultipleObjectsBundle()
BundleStreamSource
asMultipleObjectsBundle
in interface BundleStreamSource
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019 ELKI Development Team. License information.