MSFVectorElementSearchService
Objective-C
@interface MSFVectorElementSearchService : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFVectorElementSearchService : NSObject
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.
-
Constructs a VectorElementSearchService for the given vector data source.
Declaration
Objective-C
- (id)initWithDataSource:(MSFVectorDataSource *)dataSource;Swift
init!(dataSource: MSFVectorDataSource!)Parameters
dataSourceThe vector data source to search from.
-
Returns the vector data source of the search service.
Declaration
Objective-C
- (MSFVectorDataSource *)getDataSource;Swift
func getDataSource() -> MSFVectorDataSource!Return Value
The vector data source of the search service.
-
Returns the maximum number of results the search service returns.
Declaration
Objective-C
- (int)getMaxResults;Swift
func getMaxResults() -> Int32Return Value
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.
Declaration
Objective-C
- (void)setMaxResults:(int)maxResults;Swift
func setMaxResults(_ maxResults: Int32)Parameters
maxResultsThe new maximum number of results the geocoding service returns.
-
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.
Declaration
Objective-C
- (MSFVectorElementVector *)findElements:(MSFSearchRequest *)request;Swift
func findElements(_ request: MSFSearchRequest!) -> MSFVectorElementVector!Parameters
requestThe search request containing search filters.
Return Value
The resulting list of vector elements matching the request.
-
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.
Declaration
Objective-C
- (MSFVectorElementVector *) findElementsSwigExplicitMSFVectorElementSearchService: (MSFSearchRequest *)request;Swift
func findElementsSwigExplicitMSFVectorElementSearchService(_ request: MSFSearchRequest!) -> MSFVectorElementVector!Parameters
requestThe search request containing search filters.
Return Value
The resulting list of vector elements matching the request.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()