|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.hpi.fgis.dude.preprocessor.CountPreprocessor
public class CountPreprocessor
CountPreprocessor
is a sample class, that shows how the Preprocessor
interface can be
used. Since analyzeDuDeObject(DuDeObject)
is called once for each extracted DuDeObject
we can gather
statistics within the extraction phase. This sample class implements an object count. It simply counts the
analyzeDuDeObject(DuDeObject)
calls. The object count can be used later on by calling
getObjectCount()
.
Constructor Summary | |
---|---|
CountPreprocessor()
Initializes a CountPreprocessor . |
Method Summary | |
---|---|
void |
analyzeDuDeObject(DuDeObject data)
Passes the currently extracted DuDeObject to the Preprocessor for further analysis. |
void |
clearData()
Clears statistics that were already gathered. |
void |
finish()
This method is called after finishing the data extraction process. |
int |
getObjectCount()
Returns the number of objects that were extracted during the data extraction phase. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CountPreprocessor()
CountPreprocessor
.
Method Detail |
---|
public void analyzeDuDeObject(DuDeObject data)
Preprocessor
DuDeObject
to the Preprocessor
for further analysis. This
method is called by every DataSource
per extracted data record.
analyzeDuDeObject
in interface Preprocessor
data
- The DuDeObject
that shall be analyzed.public int getObjectCount()
DuDeObject
s.public void clearData()
Preprocessor
clearData
in interface Preprocessor
public void finish()
Preprocessor
finish
in interface Preprocessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |