當前位置: 首頁>>代碼示例>>Java>>正文


Java Result類代碼示例

本文整理匯總了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);
        }

    };
}
 
開發者ID:monPlan,項目名稱:springboot-spwa-gae-demo,代碼行數:21,代碼來源:MockSearch.java

示例2: createSearchResult

import com.threewks.gaetools.search.Result; //導入依賴的package包/類
@Override
public Result<T, K> createSearchResult(SearchImpl<T, K> searchRequest) {
    return super.createSearchResult(searchRequest);
}
 
開發者ID:monPlan,項目名稱:springboot-spwa-gae-demo,代碼行數:5,代碼來源:IdGaeSearchService.java

示例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);
}
 
開發者ID:monPlan,項目名稱:springboot-spwa-gae-demo,代碼行數:6,代碼來源:SearchImpl.java

示例4: createSearchResult

import com.threewks.gaetools.search.Result; //導入依賴的package包/類
@Override
public Result<T, K> createSearchResult(MockSearch<T, K> searchRequest) {
    return new MockResult<>(expectedResults, expectedResultIds);
}
 
開發者ID:monPlan,項目名稱:springboot-spwa-gae-demo,代碼行數:5,代碼來源:MockTextSearchService.java

示例5: run

import com.threewks.gaetools.search.Result; //導入依賴的package包/類
@Override
public Result<T, K> run() {
    return executor.createSearchResult(this);
}
 
開發者ID:monPlan,項目名稱:springboot-spwa-gae-demo,代碼行數:5,代碼來源:MockSearch.java

示例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);
}
 
開發者ID:monPlan,項目名稱:springboot-spwa-gae-demo,代碼行數:10,代碼來源:SearchImpl.java

示例7: createSearchResult

import com.threewks.gaetools.search.Result; //導入依賴的package包/類
Result<T, K> createSearchResult(S searchRequest); 
開發者ID:monPlan,項目名稱:springboot-spwa-gae-demo,代碼行數:2,代碼來源:SearchExecutor.java


注:本文中的com.threewks.gaetools.search.Result類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。