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