本文整理汇总了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);