|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.datasource.filter.AbstractConversionFilter<I,O>
I
- Input object typeO
- Input object typepublic abstract class AbstractConversionFilter<I,O>
Abstract base class for simple conversion filters such as normalizations and projections.
Constructor Summary | |
---|---|
AbstractConversionFilter()
|
Method Summary | |
---|---|
protected abstract SimpleTypeInformation<? super O> |
convertedType(SimpleTypeInformation<I> in)
Get the output type from the input type after conversion. |
MultipleObjectsBundle |
filter(MultipleObjectsBundle objects)
A standard implementation of the filter process. |
protected abstract O |
filterSingleObject(I obj)
Normalize a single instance. |
protected abstract SimpleTypeInformation<? super I> |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query. |
protected void |
prepareComplete()
Complete the initialization phase |
protected void |
prepareProcessInstance(I obj)
Process a single object during initialization. |
protected boolean |
prepareStart(SimpleTypeInformation<I> in)
Return "true" when the normalization needs initialization (two-pass filtering!) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractConversionFilter()
Method Detail |
---|
public MultipleObjectsBundle filter(MultipleObjectsBundle objects)
prepareStart(de.lmu.ifi.dbs.elki.data.type.SimpleTypeInformation)
returns true),
the data is processed read-only in a first pass.
In the main pass, each object is then filtered using
filterSingleObject(I)
.
filter
in interface ObjectFilter
objects
- Object to filter
protected abstract O filterSingleObject(I obj)
obj
- Database object to normalize
protected abstract SimpleTypeInformation<? super I> getInputTypeRestriction()
protected abstract SimpleTypeInformation<? super O> convertedType(SimpleTypeInformation<I> in)
in
- input type restriction
protected boolean prepareStart(SimpleTypeInformation<I> in)
in
- Input type information
protected void prepareProcessInstance(I obj)
obj
- Object to processprotected void prepareComplete()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |