|
ArcGIS Server Geoportal extension 10
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.Query
com.esri.gpt.catalog.lucene.SpatialQuery
public class SpatialQuery
An implementation of the Lucene Query model to support spatial queries.
There are two inner and private classes: SpatialWeight and SpatialScorer. Together, these three classes provide the interface for the execution of queries within the Lucene model. Very little work is done within this class (and it's two inner classes). It simply provides the interface end-points for query execution. The majority of work (both spatial filtering and spatial relevance scoring) is performed by theSpatialFilter class
.
Constructor Summary | |
---|---|
SpatialQuery(SpatialFilter filter)
Constructor. |
Method Summary | |
---|---|
Weight |
createWeight(Searcher searcher)
Creates a weight for the query. |
Query |
rewrite(IndexReader reader)
Called to re-write queries into primitive queries. |
String |
toString(String field)
Returns a string representation of the query. |
Methods inherited from class org.apache.lucene.search.Query |
---|
clone, combine, equals, extractTerms, getBoost, getSimilarity, hashCode, mergeBooleanQueries, setBoost, toString, weight |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpatialQuery(SpatialFilter filter)
filter
- the spatial filterMethod Detail |
---|
public Weight createWeight(Searcher searcher) throws IOException
createWeight
in class Query
searcher
- the index searcher
IOException
- if an exception occurs while accessing the indexpublic Query rewrite(IndexReader reader) throws IOException
rewrite
in class Query
reader
- the index reader
IOException
- if an exception occurs while accessing the indexpublic String toString(String field)
toString
in class Query
field
- the associated field name
|
ArcGIS Server Geoportal extension 10
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |