Package elki.datasource.filter
Class AbstractStreamConversionFilter<I,O>
- java.lang.Object
-
- elki.datasource.filter.AbstractStreamFilter
-
- elki.datasource.filter.AbstractStreamConversionFilter<I,O>
-
- Type Parameters:
I- Input object typeO- Input object type
- All Implemented Interfaces:
elki.datasource.bundle.BundleStreamSource,elki.datasource.filter.ObjectFilter,elki.datasource.filter.StreamFilter
- Direct Known Subclasses:
AbstractVectorStreamConversionFilter,MultivariateTimeSeriesFilter
public abstract class AbstractStreamConversionFilter<I,O> extends AbstractStreamFilter
Abstract base class for simple conversion filters such as normalizations and projections.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intcolumnThe column to filter.(package private) elki.datasource.bundle.BundleMetametaThe filtered meta.-
Fields inherited from class elki.datasource.filter.AbstractStreamFilter
source
-
-
Constructor Summary
Constructors Constructor Description AbstractStreamConversionFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract elki.data.type.SimpleTypeInformation<? super O>convertedType(elki.data.type.SimpleTypeInformation<I> in)Get the output type from the input type after conversion.java.lang.Objectdata(int rnum)protected abstract OfilterSingleObject(I obj)Normalize a single instance.protected abstract elki.data.type.TypeInformationgetInputTypeRestriction()Get the input type restriction used for negotiating the data query.elki.datasource.bundle.BundleMetagetMeta()elki.datasource.bundle.BundleStreamSource.EventnextEvent()-
Methods inherited from class elki.datasource.filter.AbstractStreamFilter
asMultipleObjectsBundle, assignDBID, filter, hasDBIDs, init, toString
-
-
-
-
Method Detail
-
getMeta
public elki.datasource.bundle.BundleMeta getMeta()
-
data
public java.lang.Object data(int rnum)
-
nextEvent
public elki.datasource.bundle.BundleStreamSource.Event nextEvent()
-
filterSingleObject
protected abstract O filterSingleObject(I obj)
Normalize a single instance. You can implement this as UnsupportedOperationException if you override both public "normalize" functions!- Parameters:
obj- Database object to normalize- Returns:
- Normalized database object
-
getInputTypeRestriction
protected abstract elki.data.type.TypeInformation getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.- Returns:
- Type restriction
-
-