|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.javamatch.engine.MatchEngine
Class MatchEngine performs the matching that is done by JavaMatch. The MatchEngine base class matches objects in the JVM only. Subclasses may provide interfaces to any object-relational mapping tools
Constructor Summary | |
MatchEngine()
|
Method Summary | |
void |
addMatchListener(MatchListener listener)
Registers the givem match listener to receive notifications when events occur in this match engine |
protected void |
discardObject(java.lang.Object objectToDiscard)
Discards the given object from memory. |
MatchResult |
executeQuery(MatchQuery query,
java.util.Iterator dataIterator1,
java.util.Iterator dataIterator2)
Executes the specified match query on all objects in the given List. |
MatchResult |
executeQuery(MatchQuery query,
java.util.List itemsToMatch)
Executes the specified match query on all objects in the given List. |
void |
removeMatchListener(MatchListener listener)
Unregisters the given match listener from notifications when events occur in this match engine |
protected java.lang.Object |
retrieveObject(java.lang.Object objectToRetrieve)
Retrieves and returns the object or object with the given identifier from the underlying persistent storage mechanism, if any. |
void |
setMaxNumResultItems(int maxNumResultItems)
The maximum number of result items to be returned in a query |
void |
setThreshold(float threshold)
Sets the threshold value, the minimum value that each sub-query shoud have, to be included in the match result |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MatchEngine()
Method Detail |
public MatchResult executeQuery(MatchQuery query, java.util.List itemsToMatch) throws MatchException
query
- the query that is executeditemsToMatch
- the items that are matched
MatchException
- when matching failedpublic MatchResult executeQuery(MatchQuery query, java.util.Iterator dataIterator1, java.util.Iterator dataIterator2) throws MatchException
query
- the query that is executeddataIterator1
- an iterator that iterates over the items that are matcheddataIterator2
- a second iterator that iterates over the items that
are used in the pre-pass of a two-pass query. This iterator may be
null if the query is single-pass
MatchException
- when matching failedpublic void setMaxNumResultItems(int maxNumResultItems)
public void setThreshold(float threshold)
threshold
- the threshold, the minimum query result value before an
object is included in the MatchResultprotected java.lang.Object retrieveObject(java.lang.Object objectToRetrieve)
objectToRetrieve
- the object or object identifier to retrieve
protected void discardObject(java.lang.Object objectToDiscard)
objectToDiscard
- the object to discardpublic void addMatchListener(MatchListener listener)
listener
- the listener that is registered to be notified of eventspublic void removeMatchListener(MatchListener listener)
listener
- the listener that is unregistered from notifications
|
Hosted by |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |