|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.hpi.fgis.dude.util.AbstractCleanable de.hpi.fgis.dude.algorithm.AbstractAlgorithm de.hpi.fgis.dude.algorithm.AbstractDuplicateDetection
public abstract class AbstractDuplicateDetection
AbstractDuplicateDetection
provides the common functionality that is needed by every duplicate-detection algorithm. Any new
duplicate-detection algorithm implementation should extend this class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.hpi.fgis.dude.algorithm.AbstractAlgorithm |
---|
AbstractAlgorithm.AlgorithmIteratorWrapper |
Constructor Summary | |
---|---|
AbstractDuplicateDetection()
Initializes a new AbstractDuplicateDetection instance. |
Method Summary | |
---|---|
protected void |
addSource(DataSource source)
Adds the DataSource to this instance. |
protected abstract Iterator<DuDeObjectPair> |
createIteratorInstance()
Returns a new Iterator instance. |
protected boolean |
dataSourceAttached(DataSource source)
Checks whether the passed DataSource is attached to this AbstractAlgorithm instance. |
boolean |
equals(Object obj)
|
protected JsonableReader<DuDeObject> |
getData()
Returns the extracted data. |
int |
getDataSize()
Returns the overall data size after the extraction process is finished. |
long |
getMaximumPairCount()
Returns the number of pairs, that would be generated by the naive algorithm of the current instance's algorithm type based on the extracted data size. |
int |
hashCode()
|
Iterator<DuDeObjectPair> |
iterator()
Starts the extraction and preprocessing phase if necessary and returns an Iterator instance for iterating over the algorithm's result. |
protected DuDeStorage<DuDeObject> |
preprocessData()
Preprocesses the data. |
void |
unregisterDataSources()
Unregisters all DataSource s. |
Methods inherited from class de.hpi.fgis.dude.algorithm.AbstractAlgorithm |
---|
addDataSource, addPreprocessor, addPreprocessor, analyzeDuDeObject, createStorage, dataExtracted, disableInMemoryProcessing, enableInMemoryProcessing, finishExtraction, finishPreprocessing, forceExtraction, getDataSize, getExtractedData, inMemoryProcessingEnabled |
Methods inherited from class de.hpi.fgis.dude.util.AbstractCleanable |
---|
cleanUp, registerCleanable, registerCloseable |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.hpi.fgis.dude.util.Cleanable |
---|
cleanUp, registerCleanable, registerCloseable |
Constructor Detail |
---|
public AbstractDuplicateDetection()
AbstractDuplicateDetection
instance.
Method Detail |
---|
public void unregisterDataSources()
Algorithm
DataSource
s.
protected void addSource(DataSource source)
AbstractAlgorithm
DataSource
to this instance.
addSource
in class AbstractAlgorithm
source
- The DataSource
that shall be added.protected boolean dataSourceAttached(DataSource source)
AbstractAlgorithm
DataSource
is attached to this AbstractAlgorithm
instance.
dataSourceAttached
in class AbstractAlgorithm
source
- The DataSource
that shall be checked.
true
, if the passed DataSource
was added to this instance; false
otherwise or null
was passed.public int getDataSize()
Algorithm
getDataSize
in interface Algorithm
getDataSize
in class AbstractAlgorithm
DuDeObject
s or 0
, if the data was not extracted, yet.protected JsonableReader<DuDeObject> getData()
JsonableReader
that can be used for reading the data.public Iterator<DuDeObjectPair> iterator()
AbstractAlgorithm
Iterator
instance for iterating over the algorithm's result.
iterator
in interface Iterable<DuDeObjectPair>
iterator
in class AbstractAlgorithm
protected abstract Iterator<DuDeObjectPair> createIteratorInstance()
Iterator
instance.
Iterator
instance.protected DuDeStorage<DuDeObject> preprocessData()
null
, if the preprocessing shall be ignored.public long getMaximumPairCount()
Algorithm
0
will be returned.
0
, if the data
wasn't extracted, yet.public int hashCode()
hashCode
in class AbstractAlgorithm
public boolean equals(Object obj)
equals
in class AbstractAlgorithm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |