当前位置: 首页>>代码示例>>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;未经允许,请勿转载。