R
- results type, e.g. Hitspublic abstract class AbstractSearch<R extends SearchResult> extends Object implements Search<R>
Constructor and Description |
---|
AbstractSearch(QueryInfo queryInfo) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancelSearch(CompletableFuture<? extends SearchResult> future) |
boolean |
equals(Object obj) |
R |
execute()
Execute the search operation, returning the final response.
|
Future<R> |
executeAsync()
Execute the search operation asynchronously.
|
protected abstract R |
executeInternal() |
protected Future<R> |
getFromCache(Search<R> search,
Supplier<R> searchTask) |
protected SearchResult |
getFromCacheBlock(Search<R> search,
Supplier<R> searchTask) |
int |
hashCode() |
QueryInfo |
queryInfo() |
protected static String |
toString(String operation,
Object... param) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
fetchAllResults, log, toString
public AbstractSearch(QueryInfo queryInfo)
public Future<R> executeAsync()
Search
executeAsync
in interface Search<R extends SearchResult>
public final R execute() throws InvalidQuery
Search
execute
in interface Search<R extends SearchResult>
InvalidQuery
protected abstract R executeInternal() throws InvalidQuery
InvalidQuery
protected SearchResult getFromCacheBlock(Search<R> search, Supplier<R> searchTask) throws ExecutionException
ExecutionException
protected void cancelSearch(CompletableFuture<? extends SearchResult> future)
public QueryInfo queryInfo()
queryInfo
in interface Search<R extends SearchResult>
public int hashCode()
public boolean equals(Object obj)
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.