| Modifier and Type | Field and Description |
|---|---|
static String |
CARET |
static org.opengis.filter.FilterFactory |
FILTER_FACTORY |
DEFAULT_MAXIMUM_RETURNED_RESULTS| Constructor and Description |
|---|
OpenSearchQuery(Integer startIndex,
Integer count,
String sortField,
String sortOrderIn,
long maxTimeout,
FilterBuilder filterBuilder)
Creates an Implementation of a DDF Query interface.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(org.opengis.filter.FilterVisitor visitor,
Object obj) |
void |
addBBoxSpatialFilter(String bbox) |
void |
addContextualFilter(String searchTerm,
String selectors) |
void |
addGeometrySpatialFilter(String geometryWkt) |
void |
addPolygonSpatialFilter(String polygon) |
void |
addSpatialDistanceFilter(String lon,
String lat,
String radius) |
void |
addTemporalFilter(String dateStart,
String dateEnd,
String dateOffset) |
void |
addTemporalFilter(TemporalFilter temporalFilter) |
void |
addTypeFilter(String type,
String versions) |
boolean |
evaluate(Object object) |
org.opengis.filter.Filter |
getFilter() |
int |
getPageSize()
The page size represents the maximum amount of results the query will return.
|
Set<String> |
getSiteIds() |
org.opengis.filter.sort.SortBy |
getSortBy()
The sortBy determines how the results will be sorted.
|
int |
getStartIndex()
Get the offset where the query results will begin.
|
FederationStrategy |
getStrategy() |
long |
getTimeoutMillis()
The timeout is specified in milliseconds.
|
boolean |
isEnterprise() |
boolean |
requestsTotalResultsCount()
Determines whether the total number of results should be returned
|
void |
setIsEnterprise(boolean isEnterprise) |
void |
setSiteIds(Set<String> siteIds) |
String |
toString() |
public static final String CARET
public static final org.opengis.filter.FilterFactory FILTER_FACTORY
public OpenSearchQuery(Integer startIndex, Integer count, String sortField, String sortOrderIn, long maxTimeout, FilterBuilder filterBuilder)
startIndex - Offset of the returned results.count - Number of results to return.sortField - Area that the results should be sorted by. Possible values: 'date' and
'relevance'sortOrderIn - Order of the results. Possible values: 'asc', 'desc'maxTimeout - Maximum amount of time for a query to respond.filterBuilder - FilterBuilder object to use for filter creation.public void addContextualFilter(String searchTerm, String selectors) throws org.parboiled.errors.ParsingException
org.parboiled.errors.ParsingExceptionpublic void addTemporalFilter(String dateStart, String dateEnd, String dateOffset)
public void addTemporalFilter(TemporalFilter temporalFilter)
public void addGeometrySpatialFilter(String geometryWkt)
public void addBBoxSpatialFilter(String bbox)
public void addPolygonSpatialFilter(String polygon)
public void addSpatialDistanceFilter(String lon, String lat, String radius)
public Object accept(org.opengis.filter.FilterVisitor visitor, Object obj)
accept in interface org.opengis.filter.Filterpublic boolean evaluate(Object object)
evaluate in interface org.opengis.filter.Filterpublic int getStartIndex()
QueryStart index is required to be 1-based. For example if the query specifies a start index of 5 then the query results will start with the 5th result discovered by the query.
If a value less than 1 is returned, Source implementations will
throw UnsupportedQueryException.
getStartIndex in interface Querypublic int getPageSize()
QuerySource, whichever is
smaller.getPageSize in interface Querypublic boolean requestsTotalResultsCount()
QueryrequestsTotalResultsCount in interface Querypublic long getTimeoutMillis()
QuerygetTimeoutMillis in interface Querypublic boolean isEnterprise()
public void setIsEnterprise(boolean isEnterprise)
public FederationStrategy getStrategy()
public org.opengis.filter.sort.SortBy getSortBy()
Querypublic org.opengis.filter.Filter getFilter()
This work is licensed under a Creative Commons Attribution 4.0 International License.