public class FuzzySearchApiImpl extends java.lang.Object implements FuzzySearchApi
Modifier and Type | Field and Description |
---|---|
protected NativeFuzzySearch |
fuzzySearch |
Constructor and Description |
---|
FuzzySearchApiImpl()
Default constructor for fuzzy search api.
|
FuzzySearchApiImpl(OnlineSearchServiceConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
cancelSearchIfRunning()
Cancels the current search request
|
protected NativeFuzzySearch |
createFuzzySearch(OnlineSearchServiceConfiguration config) |
Single<FuzzySearchResponse> |
fuzzySearch(FuzzySearchQuery searchQuery)
Performs reactive search action based on provided SearchQuery object and returns the result to Observers subscribed to returned Observable.
|
void |
fuzzySearch(FuzzySearchQuery searchQuery,
FuzzySearchResultListener listener)
Performs search action based on provided SearchQuery object and returns the result with usage of SearchCallback implementation.
|
Scheduler |
getResultScheduler() |
Scheduler |
getWorkingScheduler() |
protected NativeFuzzySearch fuzzySearch
public FuzzySearchApiImpl()
public FuzzySearchApiImpl(OnlineSearchServiceConfiguration config)
config
- search service connection configuration.@NonNull public Scheduler getWorkingScheduler()
getWorkingScheduler
in interface com.tomtom.online.sdk.common.rx.RxContext
@NonNull public Scheduler getResultScheduler()
getResultScheduler
in interface com.tomtom.online.sdk.common.rx.RxContext
@NonNull protected NativeFuzzySearch createFuzzySearch(OnlineSearchServiceConfiguration config)
public void fuzzySearch(FuzzySearchQuery searchQuery, FuzzySearchResultListener listener)
FuzzySearchApi
fuzzySearch
in interface FuzzySearchApi
searchQuery
- The object which contains data necessary to execute search action.listener
- The listener which informs the subscriber when search result is available. It contains SearchResponse object.public void cancelSearchIfRunning()
FuzzySearchApi
cancelSearchIfRunning
in interface FuzzySearchApi
public Single<FuzzySearchResponse> fuzzySearch(FuzzySearchQuery searchQuery)
FuzzySearchApi
fuzzySearch
in interface FuzzySearchApi
searchQuery
- Object which contains data necessary to execute search action