Package elki.datasource.filter
Class NoOpFilter
- java.lang.Object
-
- elki.datasource.filter.AbstractStreamFilter
-
- elki.datasource.filter.NoOpFilter
-
- All Implemented Interfaces:
BundleStreamSource
,ObjectFilter
,StreamFilter
public class NoOpFilter extends AbstractStreamFilter
Dummy filter that doesn't do any filtering. Useful for command line parameterization when you have multiple identically named parameters, and want to set the second parameter only. Then you can just use this dummy filter as first parameter.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface elki.datasource.bundle.BundleStreamSource
BundleStreamSource.Event
-
-
Field Summary
-
Fields inherited from class elki.datasource.filter.AbstractStreamFilter
source
-
-
Constructor Summary
Constructors Constructor Description NoOpFilter()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
data(int rnum)
Access a particular object and representation.MultipleObjectsBundle
filter(MultipleObjectsBundle objects)
Filter a set of object packages.BundleMeta
getMeta()
Get the current meta data.BundleStreamSource.Event
nextEvent()
Get the next event-
Methods inherited from class elki.datasource.filter.AbstractStreamFilter
asMultipleObjectsBundle, assignDBID, hasDBIDs, init, toString
-
-
-
-
Method Detail
-
filter
public MultipleObjectsBundle filter(MultipleObjectsBundle objects)
Description copied from interface:ObjectFilter
Filter a set of object packages.- Specified by:
filter
in interfaceObjectFilter
- Overrides:
filter
in classAbstractStreamFilter
- Parameters:
objects
- Object to filter- Returns:
- Filtered objects
-
getMeta
public BundleMeta getMeta()
Description copied from interface:BundleStreamSource
Get the current meta data.- Returns:
- Metadata
-
data
public java.lang.Object data(int rnum)
Description copied from interface:BundleStreamSource
Access a particular object and representation.- Parameters:
rnum
- Representation number- Returns:
- Contained data
-
nextEvent
public BundleStreamSource.Event nextEvent()
Description copied from interface:BundleStreamSource
Get the next event- Returns:
- Event type
-
-