java.lang.Object | |
↳ | com.carto.search.FeatureCollectionSearchService |
A search service for finding features from a specified feature collection.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FeatureCollectionSearchService(Projection projection, FeatureCollection featureCollection)
Constructs a FeatureCollectionSearchService for given feature collection.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
FeatureCollection |
findFeatures(SearchRequest request)
Searches for the features specified by search request from the feature collection bound to the service.
| ||||||||||
FeatureCollection |
getFeatureCollection()
Returns the feature collection of the search service.
| ||||||||||
int |
getMaxResults()
Returns the maximum number of results the search service returns.
| ||||||||||
Projection |
getProjection()
Returns the projection of the feature collection of the search service.
| ||||||||||
void |
setMaxResults(int maxResults)
Sets the maximum number of results the search service returns.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a FeatureCollectionSearchService for given feature collection.
projection | The projection to use for the feature collection. |
---|---|
featureCollection | The feature collection to search from. |
Searches for the features specified by search request from the feature collection bound to the service.
request | The search request containing search filters. |
---|
Returns the feature collection of the search service.
Returns the maximum number of results the search service returns.
Returns the projection of the feature collection of the search service.
Sets the maximum number of results the search service returns.
The default number of results is 1000.
maxResults | The new maximum number of results the geocoding service returns. |
---|