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