本文整理匯總了Java中com.threewks.gaetools.search.Result類的典型用法代碼示例。如果您正苦於以下問題:Java Result類的具體用法?Java Result怎麽用?Java Result使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Result類屬於com.threewks.gaetools.search包,在下文中一共展示了Result類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: MockSearch
import com.threewks.gaetools.search.Result; //導入依賴的package包/類
public MockSearch(final List<T> expectedResults, final List<K> expectedResultIds) {
super();
this.executor = new SearchExecutor<T, K, MockSearch<T, K>>() {
@Override
public List<K> getResultsAsIds(List<ScoredDocument> results) {
return expectedResultIds;
}
@Override
public List<T> getResults(List<ScoredDocument> results) {
return expectedResults;
}
@Override
public Result<T, K> createSearchResult(MockSearch<T, K> searchRequest) {
return new MockResult<>(expectedResults, expectedResultIds);
}
};
}
示例2: createSearchResult
import com.threewks.gaetools.search.Result; //導入依賴的package包/類
@Override
public Result<T, K> createSearchResult(SearchImpl<T, K> searchRequest) {
return super.createSearchResult(searchRequest);
}
示例3: run
import com.threewks.gaetools.search.Result; //導入依賴的package包/類
@Override
public Result<E, K> run() {
SearchExecutor<E, K, SearchImpl<E, K>> searchExecutor = repository.getSearchExecutor();
return searchExecutor.createSearchResult(this);
}
示例4: createSearchResult
import com.threewks.gaetools.search.Result; //導入依賴的package包/類
@Override
public Result<T, K> createSearchResult(MockSearch<T, K> searchRequest) {
return new MockResult<>(expectedResults, expectedResultIds);
}
示例5: run
import com.threewks.gaetools.search.Result; //導入依賴的package包/類
@Override
public Result<T, K> run() {
return executor.createSearchResult(this);
}
示例6: run
import com.threewks.gaetools.search.Result; //導入依賴的package包/類
/**
* Performs the search operation by combining all the previously specified search operations, sort orders, limits and offset.
*
* @return
*/
@Override
public Result<T, K> run() {
return searchExecutor.createSearchResult(this);
}
示例7: createSearchResult
import com.threewks.gaetools.search.Result; //導入依賴的package包/類
Result<T, K> createSearchResult(S searchRequest);