Esri Geoportal Server
1.0

com.esri.gpt.catalog.lucene
Class DiscoveryClauseAdapter

java.lang.Object
  extended by com.esri.gpt.catalog.lucene.DiscoveryClauseAdapter
Direct Known Subclasses:
LogicalClauseAdapter, PropertyClauseAdapter, SpatialClauseAdapter

public class DiscoveryClauseAdapter
extends Object

Super-class for the adaptation of a catalog discovery clause to the Lucene model.


Constructor Summary
protected DiscoveryClauseAdapter(LuceneQueryAdapter queryAdapter)
          Constructs with an associated query adapter.
 
Method Summary
protected  void appendNullCheck(BooleanQuery activeBooleanQuery, String comparisonFieldName)
          Appends a null-check query to the active boolean query.
protected  void appendQuery(BooleanQuery activeBooleanQuery, LogicalClause activeLogicalClause, Query queryToAppend)
          Appends a processed query to the active boolean query.
protected  void appendSelectAll(BooleanQuery activeBooleanQuery)
          Appends a select all query to the active boolean query.
protected  LuceneQueryAdapter getQueryAdapter()
          Gets the the query adapter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryClauseAdapter

protected DiscoveryClauseAdapter(LuceneQueryAdapter queryAdapter)
Constructs with an associated query adapter.

Parameters:
queryAdapter - the query adapter
Method Detail

getQueryAdapter

protected LuceneQueryAdapter getQueryAdapter()
Gets the the query adapter.

Returns:
the the query adapter

appendNullCheck

protected void appendNullCheck(BooleanQuery activeBooleanQuery,
                               String comparisonFieldName)
                        throws DiscoveryException
Appends a null-check query to the active boolean query.

Parameters:
activeBooleanQuery - the active Lucene boolean query
comparisonFieldName - the name of the stored, non-tokenized field to be checked
Throws:
DiscoveryException - if an invalid clause is encountered

appendQuery

protected void appendQuery(BooleanQuery activeBooleanQuery,
                           LogicalClause activeLogicalClause,
                           Query queryToAppend)
                    throws DiscoveryException
Appends a processed query to the active boolean query.

Parameters:
activeBooleanQuery - the active Lucene boolean query
activeLogicalClause - the active discovery logical clause
queryToAppend - the Lucene query to append
Throws:
DiscoveryException - if an invalid clause is encountered

appendSelectAll

protected void appendSelectAll(BooleanQuery activeBooleanQuery)
Appends a select all query to the active boolean query.

Parameters:
activeBooleanQuery - the active Lucene boolean query
Throws:
DiscoveryException - if an invalid clause is encountered

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.