|
||||||||||
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 de.hpi.fgis.dude.algorithm.SortingDuplicateDetection de.hpi.fgis.dude.algorithm.duplicatedetection.DuplicateCountSNM
public class DuplicateCountSNM
AdaptiveWindowSizeSNM
implements the Adaptive-Window-Size Sorted-Neighborhood Method that was introduced by Oliver Wonneberg.
Nested Class Summary | |
---|---|
static class |
DuplicateCountSNM.AdaptionMode
This enumeration collects all the modes which can be used. |
static class |
DuplicateCountSNM.AdaptiveWindowSizeSNMBuilder
The AdaptiveWindowSizeSNM.AdaptiveWindowSizeSNMBuilder maintains the adaptable window size of the
AdaptiveWindowSizeSNM . |
protected class |
DuplicateCountSNM.AdaptiveWindowSizeSNMIterator
AdaptiveWindowSizeSNMIterator implements the behavior of the Adaptive-Window-Size SNM algorithm. |
static class |
DuplicateCountSNM.ComparisonResult
The comparison of a DuDeObjectPair can either yield a DUPLICATE or a NON_DUPLICATE |
Nested classes/interfaces inherited from class de.hpi.fgis.dude.algorithm.AbstractAlgorithm |
---|
AbstractAlgorithm.AlgorithmIteratorWrapper |
Constructor Summary | |
---|---|
protected |
DuplicateCountSNM()
For serialization |
Method Summary | |
---|---|
protected Iterator<DuDeObjectPair> |
createIteratorInstance()
Returns a new Iterator instance. |
protected float |
getAbortThreshold()
Returns the abort threshold. |
protected DuplicateCountSNM.AdaptionMode |
getAdaptionMode()
Returns the set adaptation mode. |
protected float |
getIncreaseFactor()
Returns the set increase factor. |
protected float |
getIncreaseThreshold()
Returns the threshold for increasing the window size. |
protected DuplicateCountSNM.ComparisonResult |
getNotification()
Returns the category that was set for the last processed pair. |
protected int |
getWindowSize()
Returns the current window size. |
protected boolean |
isAbortIncrease()
Checks whether aborting the increase is enabled. |
void |
notifyOfLatestComparisonResult(DuplicateCountSNM.ComparisonResult comparisonResult)
Notifies the algorithm, whether the latest object pair has been categorized as a duplicate or a non-duplicate |
protected void |
resetNotification()
Resets the last notification |
void |
setIncreaseFactor(float increaseFactor)
Sets the increase factor. |
void |
setIncreaseThreshold(float increaseThreshold)
Sets the increase threshold. |
void |
setWindowSize(int windowSize)
Sets the window Size. |
void |
unlockInstance()
Unlocks the instance. |
Methods inherited from class de.hpi.fgis.dude.algorithm.SortingDuplicateDetection |
---|
getSortingKey, preprocessData, setSortingKey |
Methods inherited from class de.hpi.fgis.dude.algorithm.AbstractDuplicateDetection |
---|
addSource, dataSourceAttached, equals, getData, getDataSize, getMaximumPairCount, hashCode, iterator, unregisterDataSources |
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 |
---|
protected DuplicateCountSNM()
Method Detail |
---|
public void unlockInstance()
ConcurrentModificationException
. If the iteration process is not finished, yet, but any parameter shall be changed, call this method
beforehand.
protected Iterator<DuDeObjectPair> createIteratorInstance()
AbstractDuplicateDetection
Iterator
instance.
createIteratorInstance
in class SortingDuplicateDetection
Iterator
instance.public void notifyOfLatestComparisonResult(DuplicateCountSNM.ComparisonResult comparisonResult)
comparisonResult
- The category.protected void resetNotification()
protected DuplicateCountSNM.ComparisonResult getNotification()
protected DuplicateCountSNM.AdaptionMode getAdaptionMode()
protected int getWindowSize()
protected float getIncreaseThreshold()
protected float getIncreaseFactor()
protected boolean isAbortIncrease()
true
, if aborting is enabled; otherwise false
.protected float getAbortThreshold()
public void setWindowSize(int windowSize)
windowSize
- The new window size.
ConcurrentModificationException
- If this method is called while an iteration process was not finished, yet.public void setIncreaseThreshold(float increaseThreshold)
increaseThreshold
- The new increase threshold.
ConcurrentModificationException
- If this method is called while an iteration process was not finished, yet.public void setIncreaseFactor(float increaseFactor)
increaseFactor
- The new increase factor.
ConcurrentModificationException
- If this method is called while an iteration process was not finished, yet.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |