com.esri.gpt.catalog.lucene
Class LogicalClauseAdapter
java.lang.Object
com.esri.gpt.catalog.lucene.DiscoveryClauseAdapter
com.esri.gpt.catalog.lucene.LogicalClauseAdapter
public class LogicalClauseAdapter
- extends DiscoveryClauseAdapter
Adapts a catalog discovery LogicalClause to the Lucene BooleanQuery model.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogicalClauseAdapter
protected LogicalClauseAdapter(LuceneQueryAdapter queryAdapter)
- Constructs with an associated query adapter.
- Parameters:
queryAdapter
- the query adapter
adaptLogicalClause
protected void adaptLogicalClause(BooleanQuery activeBooleanQuery,
LogicalClause logicalClause)
throws DiscoveryException,
ParseException
- Builds a Lucene BooleanQuery by recursively traversing a
catalog discovery LogicalClause.
- Parameters:
activeBooleanQuery
- the active Lucene boolean querylogicalClause
- the logical clause to adapt
- Throws:
DiscoveryException
- if an invalid clause is encountered
ParseException
- if a Lucene query parsing exception occurs
Copyright 2011 Environmental Systems Research Institute.
All rights reserved.
Use is subject to
license terms.