org.crosswire.jsword.index.query
Class AndQuery

java.lang.Object
  extended by org.crosswire.jsword.index.query.AbstractBinaryQuery
      extended by org.crosswire.jsword.index.query.AndQuery
All Implemented Interfaces:
BinaryQuery, Query

public class AndQuery
extends AbstractBinaryQuery

An AND query specifies that a result needs to be in both the left and the right query results.

Author:
DM Smith
See Also:
The GNU Lesser General Public License for details.

Constructor Summary
AndQuery(Query theLeftQuery, Query theRightQuery)
          Create a query where the result is the intersection of two queries.
 
Method Summary
 Key find(Index index)
          Find the keys that match the query in the index
 
Methods inherited from class org.crosswire.jsword.index.query.AbstractBinaryQuery
getLeftQuery, getRightQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndQuery

public AndQuery(Query theLeftQuery,
                Query theRightQuery)
Create a query where the result is the intersection of two queries.

Parameters:
theLeftQuery -
theRightQuery -
Method Detail

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

Copyright ยจ 2003-2015