org.openrdf.elmo.smusher.listener
Class CollectorListener

java.lang.Object
  extended by org.openrdf.elmo.smusher.listener.CollectorListener
All Implemented Interfaces:
SmusherListener

public class CollectorListener
extends Object
implements SmusherListener

This listener collects all matches reported, ignoring duplicates and symmetric matches.

Author:
Peter Mika (pmika@cs.vu.nl)

Nested Class Summary
 class CollectorListener.Pair
           
 
Field Summary
protected  Set _matches
           
 
Constructor Summary
CollectorListener()
           
 
Method Summary
 void commit()
           
 void finish()
           
 Collection getUniqueMatches()
           
 void matchFound(Resource first, Resource second)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_matches

protected Set _matches
Constructor Detail

CollectorListener

public CollectorListener()
Method Detail

start

public void start()
Specified by:
start in interface SmusherListener

matchFound

public void matchFound(Resource first,
                       Resource second)
Specified by:
matchFound in interface SmusherListener

commit

public void commit()
Specified by:
commit in interface SmusherListener

finish

public void finish()
Specified by:
finish in interface SmusherListener

getUniqueMatches

public Collection getUniqueMatches()


Copyright © 2004-2007. All Rights Reserved.