public abstract class QueryRunnable extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected static Map<String,? extends Serializable> |
CACHE_PROPERTIES |
protected static int |
FUTURE_TIMEOUT_SECONDS |
protected static org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory |
JTS_SPATIAL_CONTEXT_FACTORY |
protected static org.slf4j.Logger |
LOGGER |
static int |
METERS_IN_KILOMETERS |
protected SearchRequest |
request |
protected Map<String,Result> |
results |
protected Search |
search |
protected SearchController |
searchController |
protected org.cometd.bayeux.server.ServerSession |
session |
protected static org.locationtech.spatial4j.context.jts.JtsSpatialContext |
SPATIAL_CONTEXT |
protected Subject |
subject |
protected static Map<String,? extends Serializable> |
UPDATE_PROPERTIES |
Constructor and Description |
---|
QueryRunnable(SearchController searchController,
SearchRequest request,
Subject subject,
Search search,
org.cometd.bayeux.server.ServerSession session,
Map<String,Result> results) |
Modifier and Type | Method and Description |
---|---|
protected void |
addResults(Collection<Result> responseResults) |
protected String |
extractQueryWkt(org.opengis.filter.Filter filter) |
protected int |
getMaxResults(SearchRequest request) |
protected Comparator<Result> |
getResultComparator(Query query) |
protected String |
getResultKey(Metacard metacard) |
protected void |
normalizeDistances(org.opengis.filter.Filter query,
Map<String,Result> results) |
protected void |
normalizeRelevance(List<Result> indexResults,
Map<String,Result> results) |
protected QueryResponse |
queryCatalog(String sourceId,
SearchRequest searchRequest,
Subject subject,
Map<String,Serializable> properties) |
abstract void |
run() |
protected static final org.slf4j.Logger LOGGER
protected static final Map<String,? extends Serializable> CACHE_PROPERTIES
protected static final Map<String,? extends Serializable> UPDATE_PROPERTIES
protected static final org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory JTS_SPATIAL_CONTEXT_FACTORY
protected static final org.locationtech.spatial4j.context.jts.JtsSpatialContext SPATIAL_CONTEXT
protected static final int FUTURE_TIMEOUT_SECONDS
public static final int METERS_IN_KILOMETERS
protected final SearchController searchController
protected final SearchRequest request
protected final Subject subject
protected final Search search
protected final org.cometd.bayeux.server.ServerSession session
public QueryRunnable(SearchController searchController, SearchRequest request, Subject subject, Search search, org.cometd.bayeux.server.ServerSession session, Map<String,Result> results)
protected String extractQueryWkt(org.opengis.filter.Filter filter)
protected void normalizeDistances(org.opengis.filter.Filter query, Map<String,Result> results)
protected void normalizeRelevance(List<Result> indexResults, Map<String,Result> results)
protected int getMaxResults(SearchRequest request)
protected void addResults(Collection<Result> responseResults)
protected Comparator<Result> getResultComparator(Query query)
protected QueryResponse queryCatalog(String sourceId, SearchRequest searchRequest, Subject subject, Map<String,Serializable> properties)
This work is licensed under a Creative Commons Attribution 4.0 International License.