java.lang.Object | |
↳ | com.carto.search.VectorElementSearchService |
A search service for finding vector elements from the specified vector data source.
Depending on the datasource, searching may perform network requests and must be executed in non-UI background thread.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
VectorElementSearchService(VectorDataSource dataSource)
Constructs a VectorElementSearchService for the given vector data source.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
VectorElementVector |
findElements(SearchRequest request)
Searches for the vector elements specified by search request from the data source bound to the service.
| ||||||||||
VectorDataSource |
getDataSource()
Returns the vector data source of the search service.
| ||||||||||
int |
getMaxResults()
Returns the maximum number of results the search service returns.
| ||||||||||
void |
setMaxResults(int maxResults)
Sets the maximum number of results the search service returns.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a VectorElementSearchService for the given vector data source.
dataSource | The vector data source to search from. |
---|
Searches for the vector elements specified by search request from the data source bound to the service.
Depending on the data source, this method may perform slow IO operations and may need to be run in background thread.
request | The search request containing search filters. |
---|
Returns the vector data source of the search service.
Returns the maximum number of results the search service returns.
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. |
---|