Package elki.datasource.filter.selection
Class ByLabelFilter
- java.lang.Object
-
- elki.datasource.filter.AbstractStreamFilter
-
- elki.datasource.filter.selection.ByLabelFilter
-
- All Implemented Interfaces:
BundleStreamSource,ObjectFilter,StreamFilter
public class ByLabelFilter extends AbstractStreamFilter
A filter to select data set by their label.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classByLabelFilter.ParParameterization class.-
Nested classes/interfaces inherited from interface elki.datasource.bundle.BundleStreamSource
BundleStreamSource.Event
-
-
Field Summary
Fields Modifier and Type Field Description private booleaninvertedInversion flagprivate intlblcolLabel columnprivate static LoggingLOGClass loggerprivate java.util.regex.MatchermatcherThe filter pattern matcher-
Fields inherited from class elki.datasource.filter.AbstractStreamFilter
source
-
-
Constructor Summary
Constructors Constructor Description ByLabelFilter(java.util.regex.Pattern pattern, boolean inverted)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectdata(int rnum)Access a particular object and representation.BundleMetagetMeta()Get the current meta data.BundleStreamSource.EventnextEvent()Get the next event-
Methods inherited from class elki.datasource.filter.AbstractStreamFilter
asMultipleObjectsBundle, assignDBID, filter, hasDBIDs, init, toString
-
-
-
-
Field Detail
-
LOG
private static final Logging LOG
Class logger
-
matcher
private final java.util.regex.Matcher matcher
The filter pattern matcher
-
inverted
private final boolean inverted
Inversion flag
-
lblcol
private int lblcol
Label column
-
-
Method Detail
-
getMeta
public BundleMeta getMeta()
Description copied from interface:BundleStreamSourceGet the current meta data.- Returns:
- Metadata
-
data
public java.lang.Object data(int rnum)
Description copied from interface:BundleStreamSourceAccess a particular object and representation.- Parameters:
rnum- Representation number- Returns:
- Contained data
-
nextEvent
public BundleStreamSource.Event nextEvent()
Description copied from interface:BundleStreamSourceGet the next event- Returns:
- Event type
-
-