org.openrdf.elmo.smusher
Class ComparatorSmusher<T extends Resource>

java.lang.Object
  extended by org.openrdf.elmo.smusher.AbstractSmusher
      extended by org.openrdf.elmo.smusher.ComparatorSmusher<T>
All Implemented Interfaces:
Smusher

public class ComparatorSmusher<T extends Resource>
extends AbstractSmusher

This smusher finds matching instances in a repository by compairing all instances of a given type using a given comparator. Note that simple comparators can be combined into more complex ones using ConjunctiveComparator and DisjunctiveComparator.

Author:
Peter Mika (pmika@cs.vu.nl)
See Also:
elmo.model.ResourceComparator

Field Summary
 
Fields inherited from class org.openrdf.elmo.smusher.AbstractSmusher
_listeners
 
Constructor Summary
ComparatorSmusher(ResourceComparator<T> comparator, Class type)
           
 
Method Summary
 void smush(SesameManager firstRepository, SesameManager secondRepository)
           
 
Methods inherited from class org.openrdf.elmo.smusher.AbstractSmusher
addListener, removeListener, smush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComparatorSmusher

public ComparatorSmusher(ResourceComparator<T> comparator,
                         Class type)
Method Detail

smush

public void smush(SesameManager firstRepository,
                  SesameManager secondRepository)
Specified by:
smush in interface Smusher
Specified by:
smush in class AbstractSmusher


Copyright © 2004-2008 Aduna. All Rights Reserved.