Esri Geoportal Server
1.2.9

com.esri.gpt.catalog.lucene
Class TimeperiodClauseAdapter

java.lang.Object
  extended by com.esri.gpt.catalog.lucene.DiscoveryClauseAdapter
      extended by com.esri.gpt.catalog.lucene.PropertyClauseAdapter
          extended by com.esri.gpt.catalog.lucene.TimeperiodClauseAdapter

public class TimeperiodClauseAdapter
extends PropertyClauseAdapter

Adapts a timeperiod based PropertyClause to the Lucene model.


Constructor Summary
protected TimeperiodClauseAdapter(LuceneQueryAdapter queryAdapter)
          Constructs with an associated query adapter.
 
Method Summary
protected  void adaptPropertyClause(BooleanQuery activeBooleanQuery, LogicalClause activeLogicalClause, PropertyClause propertyClause)
          Adapts a timeperiod based PropertyClause to the Lucene model.
 boolean getInclusive()
          Determines if range boundaries inclusive or exclusive.
 void setInclusive(boolean inclusive)
          Determines if range boundaries inclusive or exclusive.
 
Methods inherited from class com.esri.gpt.catalog.lucene.DiscoveryClauseAdapter
appendNullCheck, appendQuery, appendSelectAll, getQueryAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeperiodClauseAdapter

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

Parameters:
queryAdapter - the query adapter
Method Detail

getInclusive

public boolean getInclusive()
Determines if range boundaries inclusive or exclusive.
[] inclusive -> intersects
{} exclusive -> within

Returns:
true if inclusive

setInclusive

public void setInclusive(boolean inclusive)
Determines if range boundaries inclusive or exclusive.
[] inclusive -> intersects
{} exclusive -> within

Parameters:
inclusive - true if inclusive

adaptPropertyClause

protected void adaptPropertyClause(BooleanQuery activeBooleanQuery,
                                   LogicalClause activeLogicalClause,
                                   PropertyClause propertyClause)
                            throws DiscoveryException,
                                   ParseException
Adapts a timeperiod based PropertyClause to the Lucene model.

Overrides:
adaptPropertyClause in class PropertyClauseAdapter
Parameters:
activeBooleanQuery - the active Lucene boolean query
activeLogicalClause - the active discovery logical clause
propertyClause - the property clause to adapt
Throws:
DiscoveryException - if an invalid clause is encountered
ParseException - if a Lucene query parsing exception occurs

Esri Geoportal Server
1.2.9

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