I
- Input object typeO
- Input object typepublic abstract class AbstractConversionFilter<I,O> extends Object implements ObjectFilter
Constructor and Description |
---|
AbstractConversionFilter() |
Modifier and Type | Method and Description |
---|---|
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!)
|
public MultipleObjectsBundle filter(MultipleObjectsBundle objects)
prepareStart(de.lmu.ifi.dbs.elki.data.type.SimpleTypeInformation<I>)
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 filterprotected abstract O filterSingleObject(I obj)
obj
- Database object to normalizeprotected abstract SimpleTypeInformation<? super I> getInputTypeRestriction()
protected abstract SimpleTypeInformation<? super O> convertedType(SimpleTypeInformation<I> in)
in
- input type restrictionprotected boolean prepareStart(SimpleTypeInformation<I> in)
in
- Input type informationprotected void prepareProcessInstance(I obj)
obj
- Object to processprotected void prepareComplete()