|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.hpi.fgis.dude.util.AbstractIterator<DuDeObjectPair> de.hpi.fgis.dude.algorithm.duplicatedetection.AdaptiveSNM_Yan2007.YanIterator
protected abstract class AdaptiveSNM_Yan2007.YanIterator
Abstract Iterator
implementation that is used by the different
adaptive Sorted Neighborhood methods.
Field Summary | |
---|---|
protected Queue<DuDeObject> |
blockQueue
Queue that contains the records of the current block |
protected Iterator<DuDeObject> |
blockQueueIterator
Iterator for the records of the current block |
protected uk.ac.shef.wit.simmetrics.similaritymetrics.InterfaceStringMetric |
comparator
comparator used to calculate the distance between two sorting keys |
protected DuDeObject |
currentRec
current record that is used to create record pairs with all other records in the block |
protected Iterator<DuDeObject> |
dataIterator
Iterator for the extracted records from the data sources |
protected float |
phi
the distance threshold |
protected Queue<DuDeObject> |
recordQueue
Queue with already extracted records from the dataIterator that are not yet finally assigned to a block. |
protected Iterator<DuDeObject> |
recordQueueIterator
Iterator for the recordQueue |
protected SortingKey |
sortingKey_iterator
Sorting key for the records |
Constructor Summary | |
---|---|
AdaptiveSNM_Yan2007.YanIterator(SortingKey sortingKey,
float phi,
Iterator<DuDeObject> dataIterator)
Constructor |
Method Summary | |
---|---|
protected float |
getKeyDistance(DuDeObject first,
DuDeObject second)
Calculates the sorting key distance of two DuDeObject |
protected void |
getNextBlock()
Calculates the elements of the next block. |
protected DuDeObject |
getNextRecord()
Returns the next object from the record queue. |
protected abstract int |
getNumRecordsOfBlock()
Calculates the number of records within the next block. |
protected DuDeObjectPair |
loadNextElement()
Returns the element of the next iteration step. |
protected boolean |
nextBlockExists()
Checks whether a next block exists. |
protected boolean |
nextRecordExists()
Checks whether the record queue or the data source has a next element. |
Methods inherited from class de.hpi.fgis.dude.util.AbstractIterator |
---|
hasNext, next, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected float phi
protected Iterator<DuDeObject> dataIterator
protected Queue<DuDeObject> recordQueue
protected Iterator<DuDeObject> recordQueueIterator
protected Queue<DuDeObject> blockQueue
protected Iterator<DuDeObject> blockQueueIterator
protected DuDeObject currentRec
protected SortingKey sortingKey_iterator
protected uk.ac.shef.wit.simmetrics.similaritymetrics.InterfaceStringMetric comparator
Constructor Detail |
---|
public AdaptiveSNM_Yan2007.YanIterator(SortingKey sortingKey, float phi, Iterator<DuDeObject> dataIterator)
sortingKey
- The sorting key used to sort the records.phi
- The threshold used to determine the boundary pairs.dataIterator
- Iterator for the data, that shall be processed.Method Detail |
---|
protected DuDeObjectPair loadNextElement()
AbstractIterator
loadNextElement
in class AbstractIterator<DuDeObjectPair>
protected boolean nextRecordExists()
protected boolean nextBlockExists()
protected void getNextBlock()
protected DuDeObject getNextRecord()
protected float getKeyDistance(DuDeObject first, DuDeObject second)
DuDeObjects.
- Parameters:
first
- The first DuDeObject.second
- The second DuDeObject.
- Returns:
- the sorting key distance
protected abstract int getNumRecordsOfBlock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |