de.hpi.fgis.dude.algorithm.duplicatedetection
Class SortedNeighborhoodMethod.SortedNeighborhoodMethodIterator

java.lang.Object
  extended by de.hpi.fgis.dude.util.AbstractIterator<DuDeObjectPair>
      extended by de.hpi.fgis.dude.algorithm.duplicatedetection.SortedNeighborhoodMethod.SortedNeighborhoodMethodIterator
All Implemented Interfaces:
Iterator<DuDeObjectPair>
Enclosing class:
SortedNeighborhoodMethod

protected static class SortedNeighborhoodMethod.SortedNeighborhoodMethodIterator
extends AbstractIterator<DuDeObjectPair>

SortedNeighborhoodMethod.SortedNeighborhoodMethodIterator implements the behavior of a simple Sorted-Neighborhood-Method implementation.

Author:
Matthias Pohl

Constructor Summary
protected SortedNeighborhoodMethod.SortedNeighborhoodMethodIterator(int wndSz, Iterator<DuDeObject> dataIter)
          Initializes a SNM iterator with the given window size and data iterator.
 
Method Summary
protected  DuDeObjectPair loadNextElement()
          Returns the element of the next iteration step.
 
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
 

Constructor Detail

SortedNeighborhoodMethod.SortedNeighborhoodMethodIterator

protected SortedNeighborhoodMethod.SortedNeighborhoodMethodIterator(int wndSz,
                                                                    Iterator<DuDeObject> dataIter)
Initializes a SNM iterator with the given window size and data iterator.

Parameters:
wndSz - The window size.
dataIter - The data, that shall be processed.
Method Detail

loadNextElement

protected DuDeObjectPair loadNextElement()
Description copied from class: AbstractIterator
Returns the element of the next iteration step. This method needs to be implemented by each sub-class.

Specified by:
loadNextElement in class AbstractIterator<DuDeObjectPair>
Returns:
The next element.


Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.