org.crosswire.jsword.index.query
Class AndNotQuery
java.lang.Object
org.crosswire.jsword.index.query.AbstractBinaryQuery
org.crosswire.jsword.index.query.AndNotQuery
- All Implemented Interfaces:
- BinaryQuery, Query
public class AndNotQuery
- extends AbstractBinaryQuery
An "And Not" query specifies that a result needs to be in the left but not in
the right query result.
- Author:
- DM Smith
- See Also:
for license details.
The copyright to this program is held by it's authors.
Constructor Summary |
AndNotQuery(Query theLeftQuery,
Query theRightQuery)
Create a query where the right query result is subtracted from the left
query result. |
Method Summary |
Key |
find(Index index)
Find the keys that match the query in the index |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AndNotQuery
public AndNotQuery(Query theLeftQuery,
Query theRightQuery)
- Create a query where the right query result is subtracted from the left
query result.
- Parameters:
theLeftQuery
- theRightQuery
-
find
public Key find(Index index)
throws BookException
- Description copied from interface:
Query
- Find the keys that match the query in the index
- Parameters:
index
- the index to search
- Returns:
- the set of keys that match
- Throws:
BookException