org.openrdf.elmo.smusher.listener
Class CounterListener

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

public class CounterListener
extends Object
implements SmusherListener

A listener that counts the matches reported.

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

Field Summary
protected  int _count
           
 
Constructor Summary
CounterListener()
           
 
Method Summary
 void commit()
           
 void finish()
           
 int getCount()
           
 void matchFound(Resource first, Resource second)
           
 void reset()
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_count

protected int _count
Constructor Detail

CounterListener

public CounterListener()
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

getCount

public int getCount()

reset

public void reset()


Copyright © 2004-2008 Aduna. All Rights Reserved.