net.sourceforge.javamatch.engine
Class JDOMatchEngine
java.lang.Object
net.sourceforge.javamatch.engine.MatchEngine
net.sourceforge.javamatch.engine.JDOMatchEngine
- public class JDOMatchEngine
- extends MatchEngine
Class JDOMatchEngine provides the match engine functionality, especially
targeted at JDO implementations
Constructor Summary |
JDOMatchEngine(javax.jdo.PersistenceManager persistenceManager)
Creates an ew JDOMatchEngine, that uses the given persistenceManager for
managing object persistence |
Method Summary |
protected void |
discardObject(java.lang.Object objectToDiscard)
Discards the given object from memory. |
MatchResult |
executeQuery(MatchQuery query,
javax.jdo.Extent extent)
Executes the specified match query on all objects in the given Extent. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDOMatchEngine
public JDOMatchEngine(javax.jdo.PersistenceManager persistenceManager)
- Creates an ew JDOMatchEngine, that uses the given persistenceManager for
managing object persistence
- Parameters:
persistenceManager
- the persistence manager
executeQuery
public MatchResult executeQuery(MatchQuery query,
javax.jdo.Extent extent)
throws MatchException
- Executes the specified match query on all objects in the given Extent.
Returns a MatchResult, that contains the best matching items with their
match value.
- Parameters:
query
- the query that is executedextent
- the extent that contains the items to be matched
- Returns:
- a MatchResult, that contains the best matching ResultItems
- Throws:
MatchException
- when matching failed
discardObject
protected void discardObject(java.lang.Object objectToDiscard)
- Discards the given object from memory. After discarding, the match engine
will not call this object again (the calling application might still do
so, but that's up to that application.
- Overrides:
discardObject
in class MatchEngine
- Parameters:
objectToDiscard
- the object to discard