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


Java InternalProfileShardResults類代碼示例

本文整理匯總了Java中org.elasticsearch.search.profile.InternalProfileShardResults的典型用法代碼示例。如果您正苦於以下問題:Java InternalProfileShardResults類的具體用法?Java InternalProfileShardResults怎麽用?Java InternalProfileShardResults使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


InternalProfileShardResults類屬於org.elasticsearch.search.profile包,在下文中一共展示了InternalProfileShardResults類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: readFrom

import org.elasticsearch.search.profile.InternalProfileShardResults; //導入依賴的package包/類
@Override
public void readFrom(StreamInput in) throws IOException {
    hits = readSearchHits(in);
    if (in.readBoolean()) {
        aggregations = InternalAggregations.readAggregations(in);
    }
    if (in.readBoolean()) {
        suggest = Suggest.readSuggest(Suggest.Fields.SUGGEST, in);
    }
    timedOut = in.readBoolean();

    terminatedEarly = in.readOptionalBoolean();

    if (in.getVersion().onOrAfter(Version.V_2_2_0) && in.readBoolean()) {
        profileResults = new InternalProfileShardResults(in);
    } else {
        profileResults = null;
    }
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:20,代碼來源:InternalSearchResponse.java

示例2: InternalSearchResponse

import org.elasticsearch.search.profile.InternalProfileShardResults; //導入依賴的package包/類
public InternalSearchResponse(InternalSearchHits hits, InternalAggregations aggregations, Suggest suggest,
                              InternalProfileShardResults profileResults, boolean timedOut, Boolean terminatedEarly) {
    this.hits = hits;
    this.aggregations = aggregations;
    this.suggest = suggest;
    this.profileResults = profileResults;
    this.timedOut = timedOut;
    this.terminatedEarly = terminatedEarly;
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:10,代碼來源:InternalSearchResponse.java

示例3: parseInternalSearchResponse

import org.elasticsearch.search.profile.InternalProfileShardResults; //導入依賴的package包/類
private InternalSearchResponse parseInternalSearchResponse(Map<String, ?> map) {
    InternalSearchHits internalSearchHits = parseInternalSearchHits(map);
    InternalAggregations internalAggregations = null;
    Suggest suggest = null;
    InternalProfileShardResults internalProfileShardResults = null;
    Boolean timeout = false;
    Boolean terminatedEarly = false;
    return new InternalSearchResponse(internalSearchHits,
            internalAggregations,
            suggest,
            internalProfileShardResults,
            timeout,
            terminatedEarly);
}
 
開發者ID:jprante,項目名稱:elasticsearch-client-http,代碼行數:15,代碼來源:HttpSearchAction.java

示例4: parseInternalSearchResponse

import org.elasticsearch.search.profile.InternalProfileShardResults; //導入依賴的package包/類
private InternalSearchResponse parseInternalSearchResponse(Map<String,?> map) {
    InternalSearchHits internalSearchHits = parseInternalSearchHits(map);
    InternalAggregations internalAggregations = parseInternalAggregations(map);
    Suggest suggest = parseSuggest(map);
    InternalProfileShardResults internalProfileShardResults = null;
    Boolean timeout = false;
    Boolean terminatedEarly = false;
    return new InternalSearchResponse(internalSearchHits,
            internalAggregations,
            suggest,
            internalProfileShardResults,
            timeout,
            terminatedEarly);
}
 
開發者ID:jprante,項目名稱:elasticsearch-helper,代碼行數:15,代碼來源:HttpSearchAction.java


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