Java Code Examples for org.elasticsearch.search.aggregations.InternalAggregations#readAggregations()
The following examples show how to use
org.elasticsearch.search.aggregations.InternalAggregations#readAggregations() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InternalSearchResponse.java From Elasticsearch with Apache License 2.0 | 6 votes |
@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; } }
Example 2
Source File: SignificantLongTerms.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void readFrom(StreamInput in) throws IOException { subsetDf = in.readVLong(); supersetDf = in.readVLong(); term = in.readLong(); score = in.readDouble(); aggregations = InternalAggregations.readAggregations(in); }
Example 3
Source File: SignificantStringTerms.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void readFrom(StreamInput in) throws IOException { termBytes = in.readBytesRef(); subsetDf = in.readVLong(); supersetDf = in.readVLong(); score = in.readDouble(); aggregations = InternalAggregations.readAggregations(in); }
Example 4
Source File: LongTerms.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void readFrom(StreamInput in) throws IOException { term = in.readLong(); docCount = in.readVLong(); docCountError = -1; if (showDocCountError) { docCountError = in.readLong(); } aggregations = InternalAggregations.readAggregations(in); }
Example 5
Source File: StringTerms.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void readFrom(StreamInput in) throws IOException { termBytes = in.readBytesRef(); docCount = in.readVLong(); docCountError = -1; if (showDocCountError) { docCountError = in.readLong(); } aggregations = InternalAggregations.readAggregations(in); }
Example 6
Source File: DoubleTerms.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void readFrom(StreamInput in) throws IOException { term = in.readDouble(); docCount = in.readVLong(); docCountError = -1; if (showDocCountError) { docCountError = in.readLong(); } aggregations = InternalAggregations.readAggregations(in); }
Example 7
Source File: InternalHistogram.java From Elasticsearch with Apache License 2.0 | 5 votes |
public static EmptyBucketInfo readFrom(StreamInput in) throws IOException { Rounding rounding = Rounding.Streams.read(in); InternalAggregations aggs = InternalAggregations.readAggregations(in); if (in.readBoolean()) { return new EmptyBucketInfo(rounding, aggs, ExtendedBounds.readFrom(in)); } return new EmptyBucketInfo(rounding, aggs); }
Example 8
Source File: InternalGeoHashGrid.java From Elasticsearch with Apache License 2.0 | 4 votes |
@Override public void readFrom(StreamInput in) throws IOException { geohashAsLong = in.readLong(); docCount = in.readVLong(); aggregations = InternalAggregations.readAggregations(in); }
Example 9
Source File: InternalHistogram.java From Elasticsearch with Apache License 2.0 | 4 votes |
@Override public void readFrom(StreamInput in) throws IOException { key = in.readLong(); docCount = in.readVLong(); aggregations = InternalAggregations.readAggregations(in); }
Example 10
Source File: InternalFilters.java From Elasticsearch with Apache License 2.0 | 4 votes |
@Override public void readFrom(StreamInput in) throws IOException { key = in.readOptionalString(); docCount = in.readVLong(); aggregations = InternalAggregations.readAggregations(in); }
Example 11
Source File: InternalSingleBucketAggregation.java From Elasticsearch with Apache License 2.0 | 4 votes |
@Override protected void doReadFrom(StreamInput in) throws IOException { docCount = in.readVLong(); aggregations = InternalAggregations.readAggregations(in); }